Found 1443 Articles for C

The Ultimate Guide to Mastering Ping in C Programming: Basics, Commands, and Troubleshooting

sudhir sharma
Updated on 11-May-2023 16:33:12
Introduction to Ping in C Programming As a network administrator or programmer, it is essential to have mastery over the basics of ping in C programming in order to effectively troubleshoot any network issues that may arise. Recognized as an invaluable tool for testing and monitoring networking performance, Ping (which stands for Packet Internet Groper) was developed by Mike Muuss back in 1983. While its initial purpose was for debugging and troubleshooting IP networks, today it is used for many different functions ranging from latency analysis to routing table checks. Basics of Ping Commands Ping is an essential command for ... Read More

DTH Sensor Programming

Saba Hilal
Updated on 18-Apr-2023 11:09:03
DHT11 and DHT22 sensors are sensors that can be attached to a microcontroller on a breadboard and can measure the humidity and temperature of a place. The differences between these sensors are that DHT22 is more expensive, has better temperature reading ranges, and is more accurate. These sensors can be connected to microcontrollers such as ESP32 or Arduino and can be used by programs to read the values. In this article, using two different examples, the use of DHT11 and DHT22 Sensors is demonstrated using ESP32. The circuit is made using ESP32 microcontroller and DHT sensors in actual and on ... Read More


Saba Hilal
Updated on 18-Apr-2023 11:07:08 is needed to display the IOT project’s data online in real-time. It is a cloud server that can be used to connect to IoT devices through wifi and to control these devices through a dashboard. It can be used as a free service and it has got a simple easy-to-use interface to design dashboards. The key for authentication can be generated directly from the user’s account and can be included in the program to connect the IOT components to the respective dashboard. The feeds are important to make connections, using the program that connects the IOT circuit to the ... Read More

The First IOT Program

Saba Hilal
Updated on 18-Apr-2023 10:55:24
To start learning IoT, first, it is important to learn how to make circuits using a breadboard and a microcontroller. Then it is important to control that circuit using a program. There are some simulators available to make the beginner of IOT learn both these concepts without even having the IOT devices available. However, to get real results, using the circuit components and making the actual circuit is important. In this article, using two different examples, the way to start IOT programming is given. In example 1, the Wokwi simulator is used and in example 2, the actual circuit using ... Read More

How Much Java is Better than C?

Mr. Satyabrata
Updated on 05-Apr-2023 16:06:54
Java and C are two popular programming languages with different features, syntax & applications. For the first time, Java was introduced by Sun Microsystems in 1995 & operates on the Java Virtual Machine (JVM). C is a procedural programming language produced by Dennis Ritchie at Bell Labs in 1972. Both Java and C have their pros and cons. But here, we will explore how Java is better than C. Memory Management One of the notable distinctions between Java and C is in memory management. C uses manual memory management, which requires the programmer to allocate & deallocate memory explicitly. This ... Read More

Locate unused structures and structure-members

Satish Kumar
Updated on 03-Mar-2023 15:12:51
Structures in programming languages like C and C++ are a collection of related data fields, which can be accessed and manipulated as a single entity. They are often used to group related data items into a single variable, making it easier to manage and work with complex data structures. However, as code bases grow and evolve over time, it is not uncommon for structures and their members to become unused or redundant. These unused structures and members can clutter code and make it more difficult to understand, maintain, and update. In this article, we will discuss some ways to locate ... Read More

Corrupt stack problem in C, C++ program

Satish Kumar
Updated on 03-Mar-2023 15:05:25
Introduction The corrupt stack problem is a common issue that programmers encounter while developing software in C and C++ programming languages. This problem can arise due to a wide range of reasons and can cause severe problems in functioning of program. In this article, we will explore corrupt stack problem in detail and look at some examples of how it occurs. What is a Stack in C and C++? Before we discuss corrupt stack problem, we need to understand what a stack is. In C and C++, a stack is a data structure that allows data to be stored and ... Read More

C program to implement CHECKSUM

Satish Kumar
Updated on 08-Feb-2023 21:26:05
What is CHECKSUM? In computing, a checksum is a small-sized data created from a larger data set using an algorithm, with the intention that any changes made to the larger data set will result in a different checksum. Checksums are commonly used to verify the integrity of data that has been transmitted or stored, as errors or modifications in the data can cause the checksum to change. They can also be used to verify the authenticity of the data, as the checksum is often generated using a secret key known only to the sender and receiver. Why we use CHECKSUM? ... Read More

Difference between PHP and C

Pradeep Kumar
Updated on 10-Aug-2022 07:16:55
Many developers will indeed agree that comparing C Programming and PHP is unfair because they differ in web development. PHP is by far the most famous serverside scripting language. JavaScript works with things on the client end without ever returning to the server, while PHP manages things on the application server. PHP is based on the C programming language, thus everyone with a basic understanding of C will find it easy to learn PHP. What is PHP? PHP is a general−purpose programming language that is primarily utilized in the development of websites. It was developed in 1994 by DanishCanadian programmer ... Read More

fopen() for existing file in write mode in C

sudhir sharma
Updated on 01-Feb-2022 08:35:23
fopen() method in C is used to open the specified file.Let’s take an example to understand the problemSyntaxFILE *fopen(filename, mode)The following are valid modes of opening a file using fopen(): ‘r’, ‘w’, ‘a’, ‘r+’, ‘w+’, ‘a+’. For details visit visit C library function - fopen()fopen() for an existing file in write modeIf the file to be opened does not exist in the current directory then a new empty file with write mode is created.If the file to be opened exists in the current directory and is open using ‘w’ / ‘w+’, the contents will be deleted before writing.ExampleProgram to illustrate ... Read More
1 2 3 4 5 ... 145 Next