• 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 the given program?#includevoid main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);}

6 6
11 6
12 7
5 6
6 7

ANSWER DOWNLOAD EXAMIANS APP

C Programming
int a[5] = {1,2,3}What is the value of a[4]?

Garbage Value
1
3
0
2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
In which stage the following code#includegets replaced by the contents of the file stdio.h

None of these
During Execution
During Editing
During linking
During Preprocessing

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); }

3 hello
Linking error
Compiler Error
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i);

0123456789
Syntax error
Infinite loop
0
10

ANSWER DOWNLOAD EXAMIANS APP

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

hai
absiha
haasi
asiha

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
↑