C Interview Questions – Set 05

What is command line argument? The argument passed to the main() function while executing the program is known as command line argument. What is the use of the function in C? Uses of C function are: C functions are used to avoid the rewriting the same code again and again in our program. C functions … Read more

C Interview Questions – Set 04

What is C language? C is a mid-level and procedural programming language. The Procedural programming language is also known as the structured programming language is a technique in which large programs are broken down into smaller modules, and each module uses structured code. This technique minimizes error and misinterpretation. More details. What is an infinite … Read more

C Interview Questions – Set 03

What is a pointer in C? A pointer is a variable that refers to the address of a value. It makes the code optimized and makes the performance fast. Whenever a variable is declared inside a program, then the system allocates some memory to a variable. The memory contains some address number. The variables that … Read more

C Interview Questions – Set 02

When was C language developed? C language was developed in 1972 at bell laboratories of AT&T. What is an array in C? An Array is a group of similar types of elements. It has a contiguous memory location. It makes the code optimized, easy to traverse and easy to sort. The size and type of … Read more

C Interview Questions – Set 01

Write a program to swap two numbers without using the third variable? #include #include main() { int a=10, b=20; //declaration of variables. clrscr(); //It clears the screen. printf(“Before swap a=%d b=%d”,a,b); a=a+b;//a=30 (10+20) b=a-b;//b=10 (30-20) a=a-b;//a=20 (30-10) printf(“nAfter swap a=%d b=%d”,a,b); getch(); } Write a program to print factorial of given number using recursion? #include … Read more