• 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 2
2 1
1 2
1 1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following is the correct way of declaring a float pointer:

None of these
float ptr;
float *ptr;
*float ptr;

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char s[]="man"; int i; for(i=0; s[i]; i++) printf("%c%c%c%c ", s[i], *(s+i), *(i+s), i[s]);}

None of These
mmm nnn aaa
Compiler Error
mmmm nnnn aaaa

ANSWER DOWNLOAD EXAMIANS APP

C Programming
For 16-bit compiler allowable range for integer constants is ________?

-32768 to 32767
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:#includevoid main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);}

N
M
P
None of These

ANSWER DOWNLOAD EXAMIANS APP

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

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

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
↑