• 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
Determine Output:#define clrscr() 100void main(){ clrscr(); printf("%d", clrscr());}

Error
1
100

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);}

Garbage Value
hi followed by garbage value
hi
h
Error

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
The statement int **a;

is illegal
None of these.
is syntactically and semantically correct
is legal but meaningless

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ static char *s[] = {"black", "white", "yellow", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s",*--*++p + 3); }

et
te
ow
ck

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);}

None of These
64
4
16

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
↑