• 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 *p; printf("%d %d", sizeof(*p), sizeof(p));}

2 1
2 2
1 2
1 1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;}

Error
None of these
6
5
9

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); }

1 2 3 4
Syntax error
4
4 5 6 7
Runtime error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the given program?#includevoid main(){int value1, value2=100, num=100;if(value1=value2%5) num=5;printf("%d %d %d", num, value1, value2);}

100 5 100
100 0 100
5 0 100
100 100 100
5 0 20

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);}

Error
3
Garbage value
6

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Choose the correct output for the following program.#includevoid main(){ int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf("%d %d %d %d", d, a, b, c);}

50, 13, 24, 50
50, 13, 24, 13
50, 13, 11, 13
13, 13, 24, 13
13, 10, 24, 50

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
↑