100% found this document useful (1 vote)
696 views5 pages

Wipro Interview Questions & Answers1

This document provides 10 questions and answers about C programming concepts like precedence and order of evaluation. It tests knowledge of operators, expressions and their evaluation order. It also provides additional resources on C programming including links to articles on keywords like sizeof and a list of best reference books.

Uploaded by

Dorothy Saikia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
696 views5 pages

Wipro Interview Questions & Answers1

This document provides 10 questions and answers about C programming concepts like precedence and order of evaluation. It tests knowledge of operators, expressions and their evaluation order. It also provides additional resources on C programming including links to articles on keywords like sizeof and a list of best reference books.

Uploaded by

Dorothy Saikia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

CSizeof(http://www.sanfoundry.

com/cprogrammingquestionsanswerssizeofkeyword1/)
CSizeof2(http://www.sanfoundry.com/cprogrammingquestionsanswerssizeofkeyword2/)

CProgrammingQuestionsandAnswersPrecedenceandOrderof
Evaluation4
Sanfoundrys 1000+ Interview Questions & Answers on C helps anyone preparing for Wipro and other
companiesCinterviews.Oneshouldpracticethese1000+interviewquestionsandanswerscontinuouslyfor
23monthstoclearWiprointerviewsonCProgramminglanguage.

HereisalistingofCprogramminginterviewquestions on Precedence and Order of Evaluation


alongwithanswers,explanationsand/orsolutions:
1.WhatistheoutputofthisCcode?
advertisements

1. #include<stdio.h>
2. voidmain()
3. {
4. intb=54+2*5;
5. printf("%d",b);
6. }

a)25
b)5
c)11
d)Noneofthementioned
ViewAnswer
Answer:c

2.WhatistheoutputofthisCcode?

1. #include<stdio.h>
2. voidmain()
3. {
4. intb=5&4&6;
5. printf("%d",b);
6. }

advertisements

a)5
b)6
c)3
d)4
ViewAnswer
Answer:d

3.WhatistheoutputofthisCcode?
1. #include<stdio.h>
2. voidmain()
3. {
4. intb=5&4|6;
5. printf("%d",b);
6. }

a)6
b)4
c)1
d)0
ViewAnswer
4.WhatistheoutputofthisCcode?

1. #include<stdio.h>
2. voidmain()
3. {
4. intb=5+7*49*(3,2);
5. printf("%d",b);
6. }

a)6
b)15
c)13
d)21
ViewAnswer
Answer:b

5.WhatistheoutputofthisCcode?
1. #include<stdio.h>
2. voidmain()
3. {
4. inth=8;
5. intb=(h++,h++);
6. printf("%d%d\n",b,h);
7. }

a)1010
b)109
c)910
d)810
ViewAnswer
Answer:c

6.WhatistheoutputofthisCcode?
1. #include<stdio.h>
2. voidmain()
3. {
4. inth=8;
5. intb=h+++h+++h++;
6. printf("%d\n",h);
7. }

a)9
b)10
c)12
d)11
ViewAnswer
Answer:d

7.WhatistheoutputofthisCcode?
1. #include<stdio.h>
2. voidmain()
3. {
4. inth=8;
5. intb=4*6+3*4<3?4:3;
6. printf("%d\n",b);
7. }

a)3
b)33
c)34
d)Runtimeerror
ViewAnswer
Answer:a

8.WhatistheoutputofthisCcode?
1. #include<stdio.h>
2. voidmain()
3. {
4. inta=2+34+85%4;
5. printf("%d\n",a);
6. }

a)0
b)8
c)11
d)9
ViewAnswer
Answer:b

9.WhatistheoutputofthisCcode?

1. #include<stdio.h>
2. voidmain()
3. {
4. chara='0';
5. charb='m';
6. intc=a&&b||'1';
7. printf("%d\n",c);
8. }

a)0
b)a
c)1
d)m
ViewAnswer
Answer:c

10.WhatistheoutputofthisCcode?
1. #include<stdio.h>
2. voidmain()
3. {
4. chara='A';
5. charb='B';
6. intc=a+b%33*2;
7. printf("%d\n",c);
8. }

a)65
b)58
c)64
d)59
ViewAnswer
Answer:d

SanfoundryGlobalEducation&LearningSeriesCProgrammingLanguage.
Heres the list of Best Reference Books in C Programming Language
(http://www.sanfoundry.com/bestreferencebookscprogrammingdatastructuresalgorithms/).
TopracticeallfeaturesofCprogramminglanguage,hereiscompletesetof1000+MultipleChoice
QuestionsandAnswersonC(http://www.sanfoundry.com/cinterviewquestionsanswers/).
Like

29

You might also like