-
-
-
Main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; }
A) Gets into Infinite loopB) Compile error. Illegal syntaxC) None of the aboveD) Runtime error.Explanation: illegal syntax for using return
-
-
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 ?
C Interview Questions
Ans