• 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(){ int const *p=5; printf("%d", ++(*p));}

5
6
Garbage Value
Compiler Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?#includevoid main(){ int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u", a+1, &a+1);}

None of these
65474, 65488
65474, 65476
65480, 65496
65480, 65488

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");}

Ok here
Error
None of These
Forget it

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following is a complete function?

void funct(int) { printf(“Hello"); }
int funct();
void funct(x) { printf(“Hello"); }
int funct(int x) { return x=x+1; }
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }}

2 2 2 2 2 2 3 4 6 5
2.8 3.4 4 6.7 5 2.8 3.4 4 6.7
2.8 2.8 2.8 2.8 2.8 2.8 3.4 4
2 3 4 6 5 2 3 4 6 5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the program ?#includevoid main(){ printf(5+"Good Morningn");}

M
Morning
Good Morning
Good
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
↑