☰
×
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 V
« Prev
Next »
C Program - Choose the Correct Answer
41. What is the output of following code main() { int i=-3,j=2,k=0,m; m=++i || ++j && ++k; printf("%d %d %d %d\n",i,j,k,m); } Options a) -2 2 0 1 b) -2 3 1 0 c) -2 2 1 1 d) None of these 42. What does the following code do? main() { unsigned int i=5,c; for(c=0;i;c++) i&=i-1; //return c; printf("%d\n",c); } Options a) Finds out if i is even or odd b) Finds out the number of bits set in i c) Finds out the number of bits non set in i d) None of these 43. What is the output of following c program? main() { int a[5]={2,3}; printf("%d %d %d\n",a[2],a[3],a[4]); } Options a) garbage b) 2 3 3 c) 3 2 2 d) 0 0 0 44. test is run from command line as ./test Friday Tuesday Sunday main(int argc,char *argv[]) { printf("%c\n",**++argv); } Options a) t b) F c) test d) Friday 45. Which of the following is correct a) BSS contains initialized data b) BSS contains automatic variables c) BSS contains uninitialized data d) None of these 46. Give the following statement, what is value of May? enum day={jan=1,feb=4,april,may}; Options a) 4 b) 5 c) 6 d) 10 47. Output of the following C program main() { int i=20,j,k=0; for(j=1;j
« 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