• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

C PROGRAMMING QUIZ

The operator > and < are meaningful when used with pointers, if

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ int i=1, j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; }}

TRUE ANSWER : ?
YOUR ANSWER : ?

Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));}

TRUE ANSWER : ?
YOUR ANSWER : ?

Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte)

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the following is a complete function?

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));}

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }}

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of following is not a valid name for a C variable?

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i);

TRUE ANSWER : ?
YOUR ANSWER : ?

Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program?

TRUE ANSWER : ?
YOUR ANSWER : ?
MORE MCQ

QUIZ STATS

  • 0
  • 0

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑