• 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(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);}

1 1 1
0 0 0
garbage values
Error

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

short
float
long
char
int

ANSWER DOWNLOAD EXAMIANS APP

C Programming
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code?

6
24
12
It will not compile because not enough initializers are given
7

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the given program?#includevoid main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);}

12 7
11 6
6 6
6 7
5 6

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);}

0
complier error
1
no error no output

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
↑