• 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.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));}

0, 2
4, 4
2, 4
2, 2
2, 0

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");}

Error
None of these.
Unequal
Equal

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Array passed as an argument to a function is interpreted as

Address of the array.
Address of the first element of the array.
Number of element of the array.
Values of the first elements of the array.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The statement int **a;

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed?

y=MVEDA
y=EDA
y=EXAMIANS
y=AMVEDA
y=VEDA

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the maximum number of dimensions an array in C may have?

Theoratically no limit. The only practical limits are memory size and compilers.
8
2
50
20

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
↑