• 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
What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));}

2 1
1 1
1 2
2 2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);}

hello 5
hello garbage value
Error
None of These

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The address operator &, cannot act on

R-values
Members of a structure
Local variables
Arithmetic expressions
Both of the above

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);}

6
7
0
Compiler Error
5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine output:#include#define clrscr() 100void main(){ clrscr(); printf("%dn", clrscr());}

Error
0
100
1

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

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

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
↑