• 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:void main(){ extern int i; i=20; printf("%d", sizeof(i));}

Linker Error
Compiler Error
2
20

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is right way to Initialize array?

int n{} = { 2, 4, 12, 5, 45, 5 };
int n{6} = { 2, 4, 12 };
int num[6] = { 2, 4, 12, 5, 45, 5 };
int n(6) = { 2, 4, 12, 5, 45, 5 };

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));}

Error
6
4
5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The declarationint (*p) [5];means

None of these.
p is a pointer to a 5 elements integer array.
The same as int *p[
p is one dimensional array of size 5, of pointers to integers.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);}

6
5
7
None of These

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following comments about the ++ operator are correct?

All of these
The operand can come before or after the operator
It associates from the right
It is a unary operator
It cannot be applied to an expression

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
↑