• 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);}

garbage values
1 1 1
0 0 0
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program? #include\ int main(){  extern int i;  i = 20;  printf("%ld ", sizeof(i));  return 0; }

4
Depends on the Compiler
Linker Error : Undefined symbol 'i'
2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);}

i=4 j=2
the behavior is undefined
i=3 j=2
i=5 j=2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will happen after compiling and running following code?main(){ printf("%p", main); }

None of these.
Some address will be printed.
Will make an infinite loop.
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);}

None of These
9
10
11

ANSWER DOWNLOAD EXAMIANS APP

C Programming
C programs are converted into machine language with the help of

An operating system
A compiler
An Editor
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
↑