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

Syntax error
65 65
53 65
065 65
053 65

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of following is not a valid name for a C variable?

Exam_veda
Exam veda
Both A and B
Examians
None of these

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
12
It will not compile because not enough initializers are given
7
24

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);}

a = 4, c = 6
a = 3, c = 8
a = 4, c = 8
b = 4, c = 6
b = 3, c = 6

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));}

Compiler Error
2
Linker Error
20

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }}

4 5 6 7 8 9
4 5 6 7 8 9 10
None of these
1 2 3 10
1 2 3 4 5 6 7 8 9

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
↑