-
-
How would you declare an array of pointers to functions?
How would you declare an array of pointers to functions that take no parameters and return an int?
A. int (*arr[N])(void);
B. int *arr(void)[N];
C. int *arr[N](void);
D. int (*arr)(void)[N]; -
Maximum combined length of command line arguments in C
What is the maximum length of command line arguments including space between adjacent arguments ?
-
-
-
-
-
-
Using C, How will you search for a word in file ?
if i enter an ID Number it should look in the .txt file the employee who owns that ID Number then it will display it on the screen..
-
Output of a++ + ++a + a++
What is the answer of a++ + ++a + a++
int a=5;c = a++ + ++a + a++;//compiler produces the answer 28!!!//How -
What will be output of following program and how?
i=4;
j=++i*++i;
printf("%d", j);
My Ans-30; -
-
-
-
Output of ++i + ++i + i + --i?
What will be the output of ++i + ++i + i + --i when i=5?
Compiler says output is 27. How? -
Pre and post increment operators
Why does ++i * ++i give 49 when i=5?
-
What is the difference in C and Java ?
Why the c use only compiler ? while java used both interpreter as well as compiler ?
-
Where is the function declared as static stored in memory?
The usage of static with a function or variable restricts their scope.Is this behaviour memory related?
-
Garbage Value
In C if a variable is not assigned a value then why does it take garbage value?
-
Logical Operator and Pre-increment Operator
what is the output of the following program
int x,y,z;
x=y=z=1;
z=++x||++y &&++z;
printf("%d,%d,%d",x,y,z);
return 0;
C Interview Questions
Ans