-
-
What will be output of following program and how?
i=4;
j=++i*++i;
printf("%d", j);
My Ans-30; -
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..
-
-
-
-
-
-
Maximum combined length of command line arguments in C
What is the maximum length of command line arguments including space between adjacent arguments ?
-
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]; -
-
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
-
-
-
-
-
-
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 -
-
Are pointers integers?
No, pointers are not integers.A pointer is an address.It is merely a positive number and not an integer.
C Interview Questions
Ans