Solve This if You Call yourself a C Programmer - C Programming | Techkeguruji.com - TechKeGuruJi.Com

Solve This if You Call yourself a C Programmer - C Programming | Techkeguruji.com


Do You Know C Programming | Techkeguruji.com
The most common   question in every interview is " Do u know C language" and your answer is probably yes. but you should think about this once again. Because there may be some questions that even you can't solve. Yes, it is true, I am here with some interesting questions like that. try to answer them correctly and then you can measure yourself and your abilities. Actually, I get this questions from that professional who were thinking they know C properly. But it's your turn. 



 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: 


Struct T{
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);
 }

Answer: 

  • A: 0
  • B: 1
  • C: 2
  • D: Don't Know

 

Question 3:


main()
{
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));
}


Answer: 

  • A: 0
  • B: 1
  • C: 16
  • D: Don't Know

Question 5:


main()
{
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.



Tags: c based programming languages, c certification,c developer, c function, c programming class, c# programming languagepascal programming, pascal programming languagesocket programming in c, visual c programming 

No comments

Powered by Blogger.