• 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
Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));}

5
6
4
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);}

b = 4, c = 6
a = 3, c = 8
b = 3, c = 6
a = 4, c = 6
a = 4, c = 8

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?

arr{7}
arr[6]
arr{6}
arr[7]
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program code?#includevoid main(){ int i = 10; void *p = &i; printf("%f", *(float *)p);}

0.000000
None of these.
Error
10

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Comment on the following pointer declaration?int *ptr, p;

ptr is a pointer to integer, p is not.
ptr and p, both are pointers to integer.
ptr is pointer to integer, p may or may not be.
ptr and p both are not pointers to integer.

ANSWER DOWNLOAD EXAMIANS APP

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

i = 1, +i = 1
None of These
i = -1, +i = 1
i = -1, +i = -1

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
↑