For Loop In C Programming Language

For Loop In C Programming Language

C programming language provides the for loop in order to iterate over a given list. The for loop provides an initialization value with the condition to jump the next step and the incrementation value. The “for” loop can be used in different cases to process multiple data, search for something, etc. In this tutorial, we … Read more

“usr/bin/ld cannot find -lxxx” Error and Solution

"usr/bin/ld cannot find -lxxx" Error and Solution

The GCC or g++ are popular compilers used to complete C and C++ applications. During the compilation, the compiler looks at the source code and loads the required libraries. If the required library can not be found the usr/bin/ld cannot find -l error thrown. “/usr/bin/ld cannot find -lc” Error and Solution The “/usr/bin/ld cannot find … Read more

How To Convert A String To An Integer In C?

How To Convert A String To An Integer In C?

C programming language provides the string and integer types in order to store text and numbers. String type consists of single or more characters where integers consist of only numbers and can be used for mathematical operations and operators. While working with different types of data we may require to convert a string into an … Read more

C memcpy() Method Tutorial

The C programming language provides the memcpy() method in order to copy data from the source memory location to the destination memory location. The memcpy() method is provided by the string.h library for C. Also the memcpy() method is provided with the C++ standard library. memcpy() Method Syntax The memcpy() method has the following syntax … Read more

What Is The Difference Between exit(0) and exit(1)?

What Is The Difference Between exit(0) and exit(1)?

The exit() is a method or function used in C and C++ programming languages in order to exit from the current execution. The exit()generally used to end the current application and program by providing some state information to the caller. exit() Syntax The exit() has the following syntax where it can accept single parameter which … Read more