• 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(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));}

4..2
2..4
4..4
2..2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); }

None of these.
Some address will be printed
Hello
H

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int c = - -2; printf("c=%d", c);}

2
Error
-2
1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The declarationint (*p) [5];means

p is a pointer to a 5 elements integer array.
The same as int *p[
None of these.
p is one dimensional array of size 5, of pointers to integers.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);}

5
6
None of These
7

ANSWER DOWNLOAD EXAMIANS APP

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

Error
None of These
hello garbage value
hello 5

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
↑