Home >>Interview Questions >C Interview Questions
Ans : C language is the procedural programming language. the procedural programming means that we can divide the program into small blocks of code.C language is the base of all programming languages so we can say c is the mother of all programming languages.
Ans : Dennis Ritchie
Ans : C language was developed in 1972 at bell laboratories of AT&T
Ans : Basic Features of C Language are :
Ans : printf is used to print( ) any type of values and scanf( ) is used to take input from keyboard
Ans : Using the function in c language we can divide a program into a small unit that breaks the big task into smaller tasks so that it makes the C program more understandable.
Ans : A static local variables retains its value between the function call and the default value is 0.
Ans : The parameters sent to the function at calling end are called as actual parameters while at the receiving of the function definition called as formal parameters.
Ans : A function's definition prefixed with static keyword is called as a static function. You would make a function static if it should be called only within the same source code.
Ans : American National Standards Institute
Ans : The getch() function reads a single character from the keyboard. It doesn't use any buffer, so entered data will not be displayed on the output screen.
The getche() function reads a single character from the keyword, but data is displayed on the output screen. Press Alt+f5 to see the entered character.
Ans : Yes, we can compile, but it can't execute.
Using #define preprocessor directive we can run a program . #include# define start main Void mystart() { Printf("welcome in c language") }
Ans : Using pointer we can refer to the address of a value. It makes the code effective and makes the performance best. when we declare a variable in the program, then the system allocates some memory to a variable. This address is called as the pointer variable.
Ans : Array is the collection of similar types of data. It is contiguous memory location. Every Value of Array is known as elements of array.
There are two types of array in C
1.One-Dimensional array
2.Multidimensional array(Two dimensional, Three Two dimensional, etc)