• 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

Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the following function calculates the square of 'x' in C?

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);}

TRUE ANSWER : ?
YOUR ANSWER : ?

What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));}

TRUE ANSWER : ?
YOUR ANSWER : ?

Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following program? #include\<stdio.h> int main(){  extern int i;  i = 20;  printf("%ld ", sizeof(i));  return 0; }

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine output:#include <stdio.h>void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");}

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
↑