C Programming

C is a general-purpose, middle-level, compiler-based, and procedure or function-oriented structured programming language. It was developed by Dennis Ritchie at Bell Laboratories in 1972. The main purpose of developing C was to write operating systems.

Related Pages

Swapping Program in C

There are many different swapping program in C language. Swap two numbers mean to exchange the values of two variables with each other. X=10 and Y=20 then after swapping X=20 and Y=10 Swapping program in C using a temporary variable Output:- a=20 b=10 Explanation:- At starting we take a=10, b=20 and the temporary variable c […]

Swapping Program in C Read More »

Bitwise Operators in C

Bitwise Operators in C | An Arithmetic logic unit (which is within the CPU), mathematical operations like addition, subtraction, multiplication, and division are done at bit-level. To perform bit-level operations bitwise operators in C language are used. Bitwise operators work on bits. These operators operate only on integers, not floating-point numbers. Bitwise operators are low-level

Bitwise Operators in C Read More »

Undefined Reference to sqrt in C

Problem:- Undefined reference to sqrt() in C Programming (or other mathematical functions) even includes math.h header Windows user doesn’t get any warning and error but Linux/Unix user may get an undefined reference to sqrt. This is a linker error. In the below program, We used sqrt() function and include math.h If you are using a

Undefined Reference to sqrt in C Read More »

Hello World Program in C

Hello World! in C Programming. Here we will write the Hello world program in C language. In every programming first program example starts from displaying Hello, World! to the screen. In the above program, both words are displayed on the screen separately. We can write Hello, World! in a single line or in multi-lines. Output:-

Hello World Program in C Read More »