• 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);}

no error no output
0
complier error
1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);}

1
Error
11
12

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char not; not = !2; printf("%d", not);}

0
Garbage Value
2
None of These

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char *p; p="Hello"; printf("%c", *&*p);}

Some Address will be printed
H
None of These
Hello

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=4
Error
x=5
x=0
x=1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);}

0 0
Garbage vlaue Garbage Value
0 Garbage Value
Garbage value 0
Code will not compile

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
↑