• 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
Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));}

4
6
Error
5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Comment on the following pointer declaration?int *ptr, p;

ptr and p both are not pointers to integer.
ptr is a pointer to integer, p is not.
ptr is pointer to integer, p may or may not be.
ptr and p, both are pointers to integer.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char string[]="Hello World"; display(string);}void display(char *string){ printf("%s", string);}

None of These
Compiler Error
will print Hello World
Can't Say

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
None of these
Compiler Error
Linking error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);}

c=3 d=3
c=5 d=3
c=5 d=5
c=3 d=5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The function scanf() returns .........

ASCII value of the input read.
The actual values read for each argument.
0
The number of successful read input values.
1

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
↑