• 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
The type of the controlling expression of a switch statement cannot be of the type ........

float
short
char
int
long

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine output:void main(){ int const *p=5; printf("%d", ++(*p));}

Compiler Error
6
5
Garbage Value

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); }

4 5 6 7
1 2 3 4
Syntax error
4
Runtime error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the base data type of a pointer variable by which the memory would be allocated to it?

No data type
unsigned int
Depends upon the type of the variable to which it is pointing.
int
float

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));}

1 1
2 1
2 2
1 2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }}

Infinite Loop
0 0 0 0
5 4 3 2 1
None of These

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
↑