• 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

What will be the output of given program?#include<stdio.h>void main(){int a=1;if("%d=hello", a);}

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 : ?

short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code?

TRUE ANSWER : ?
YOUR ANSWER : ?

char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed?

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the program?#include<stdio.h>#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));}

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the program ?#include#includevoid main(){ char str[] = "Exam\0Veda"; printf("%s", str);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); }

TRUE ANSWER : ?
YOUR ANSWER : ?

The default parameter passing mechanism is

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
↑