• 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
1
complier error
0

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine the Final Output:void main(){ printf("\nab"); printf("\bsi"); printf("\rha");}

asiha
absiha
haasi
hai

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be printed after execution of the following program code?main(){ printf("\\nab"); printf("\\bsi"); printf("\\rha"); }

absiha
asiha
hai
haasi
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Pick the correct statements.I.   The body of a function should have only one return statement.II.  The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment.

II and IV
I and II
III and IV
I and III
II and III

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which command is used to skip the rest of a loop and carry on from the top of the loop again?

resume
skip
None of these
continue
break

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);}

Compiler time error
Segmentation fault/runtime crash
Undefined behavior
10

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
↑