Solve This if You Call yourself a C Programmer - C Programming | Techkeguruji.com
Do You Know C Programming | Techkeguruji.com |
hold on, take a cup of Coffee and relax it might be easy for you, there are only Five questions read them carefully once, twice or even ten times then comment the answers. Each question is objective type i.e you have to select the proper answer. There are 4 options i.e A, B, C and D. Comment correct answer below.
Question 1:
int c;
char g;
}t;
main()
{
return sizeof(*(&t));
}
Answer:
- A: 5
- B: 8
- C: 4
- D: Don't Know
Question 2:
main()
{
char a=0;
short int b=0;
return sizeof(b)= sizeof(a+b);
}
{
char a=0;
short int b=0;
return sizeof(b)= sizeof(a+b);
}
Answer:
- A: 0
- B: 1
- C: 2
- D: Don't Know
Question 3:
main()
{
char a=' '*13;
return a;
}
{
char a=' '*13;
return a;
}
Answer:
- A: 416
- B: 160
- C: -96
- D: Don't Know
Question 4:
main()
{
int i=16;
return(((((i>=i)<<i)>>i)<=i));
}
{
int i=16;
return(((((i>=i)<<i)>>i)<=i));
}
Answer:
- A: 0
- B: 1
- C: 16
- D: Don't Know
Question 5:
main()
{
int i=0;
return i++ + ++i;
}
{
int i=0;
return i++ + ++i;
}
Answer:
- A: 1
- B: 2
- C: 3
- D: Don't Know
Thanks for Visiting Our Website Check other post you may like and Share below with your friends i will reply in comments if you want to know the correct answers. Subscribe us and don't forget to like our Facebook Page.
Post a Comment