• 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

C Programming
What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);}

complier error
0
no error no output
1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;}

a[0] = 2
Compilation error
a[1] = 2
a[1] = 3
a[0] = 3

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:#include#define a 10void main(){ #define a 50 printf("%d", a);}

None of These
10
50
Compiler Error

ANSWER DOWNLOAD EXAMIANS APP

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

fff4
fff0
fff2
fff3
fff1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
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);}

x=0
x=1
Error
x=4
x=5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The function sprintf() works like printf(), but operates on ..........

Data file
no such function in 'C'.
string
stderr
stdin

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON C Programming

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
↑