☰
×
Home
◈ Introduction
C - Data Types IQ
◈ C Data Type Tricky - I
◈ C Data Type Tricky - II
◈ C Data Type Tricky - III
◈ C Data Type Tricky - IV
◈ C Data Type Tricky - V
C - Operators IQ
◈ C Operators Tricky - I
◈ C Operators Tricky - II
◈ C Operators Tricky - III
Choose the Correct
◈ Choose the Correct Ans - I
◈ Choose the Correct Ans- II
◈ Choose the Correct Ans - III
◈ Choose the Correct Ans - IV
◈ Choose the Correct Ans - V
◈ Choose the Correct Ans - VI
Find Output - Tricky
◈ C Pgm Tricky Questions I
◈ C Pgm Tricky Questions II
◈ C Pgm Tricky Questions III
◈ C Pgm Tricky Questions IV
◈ C Pgm Tricky Questions V
◈ C Pgm Tricky Questions VI
◈ C Pgm Tricky Questions VII
◈ C Pgm Tricky Questions VIII
◈ C Pgm Tricky Questions IX
C - General IQ
◈ General C Questions I
◈ General C Questions II
◈ General C Questions III
◈ General C Questions IV
◈ General C Questions V
◈ General C Questions VI
◈ General C Questions VII
Home
About
Consulting
Training
Tutorial
Interview Questions
Contact
Interview Questions
C Pgm - Choose the Correct Ans
Home
C Interview Questions
◈ Introduction
C Data Types Tricky Questions
◈ C Data Type Tricky Questions I
◈ C Data Type Tricky Questions II
◈ C Data Type Tricky Questions III
◈ C Data Type Tricky Questions IV
◈ C Data Type Tricky Questions V
C Operators Interview Questions
◈ C Operators Tricky Questions I
◈ C Operators Tricky Questions II
◈ C Operators Tricky Questions III
Choose the Correct Answer
◈ Choose the Correct Answer I
◈ Choose the Correct Answer II
◈ Choose the Correct Answer III
◈ Choose the Correct Answer IV
◈ Choose the Correct Answer V
◈ Choose the Correct Answer VI
Find Output - Tricky C Program
◈ C Programs Tricky Questions I
◈ C Programs Tricky Questions II
◈ C Programs Tricky Questions III
◈ C Programs Tricky Questions IV
◈ C Programs Tricky Questions V
◈ C Programs Tricky Questions VI
◈ C Programs Tricky Questions VII
◈ C Programs Tricky Questions VIII
◈ C Programs Tricky Questions IX
General C Interview Questions
◈ General C Questions I
◈ General C Questions II
◈ General C Questions III
◈ General C Questions IV
◈ General C Questions V
◈ General C Questions VI
◈ General C Questions VII
C Programming Interview Questions
C - Choose the Correct Answer IV
« Prev
Next »
C Program - Choose the Correct Answer
31. Given the definition for "x" as given below, which one of following does NOT print the letter ‘r’? char x[]="car"; Options a) printf("%c\n",*x+2); b) printf("%c\n",x[2]); c) printf("%c\n",2[x]); d) printf("%c\n",*(x+2)); 32. What is the value of 'a' printed when the program is executed? #include
main() { int a=10; int b=0; int c=0; { int c=4; if(c==0) { int a=200; } else { int a=30; } if(b!=0) { a=a/2; } else { a=a/5; } } printf("%d\n",a); } Options a) Compilation error b) 40 c) 10 d) 2 33. Which is correct declaration when f is function returning pointer to an array of pointer to function returning character? Options a) char (*(*f())[])(); b) char *(*f())[]; c) char (*f()[]()); d) char [*(*f())]; 34. Difference between const char *p, char const *p, char *const p Options a) There is no difference at all b) First two same, they declare a pointer to a const character the third one declares a const pointer to a (variable) character c) The first one declares a pointer to a const character, the last two are same they declare a const pointer to a(variable) character d) None of these 35. If the initial value of x=200,what is the value after execution time #define MAX 100 #define MIN 100 main() { int x=200; if(x>MAX) x=1; else if(x
« Prev
Next »
Helpful Links
Sateeshkg Home
Interview Questions
Corporate Training
Recommended Books
Linux Consulting
Apply for Job Assistance
If you have any queries please email us at
info@motionzen.com