• 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. void main() { int i=01289; printf("%d", i); }

713
0713
1289
0289
Syntax error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following comments about the ++ operator are correct?

It is a unary operator
The operand can come before or after the operator
It cannot be applied to an expression
All of these
It associates from the right

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The operator > and < are meaningful when used with pointers, if

The pointers point to data of similar type.
The pointers point to elements of the same array.
The pointers point to structure of similar data type.
None of these.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a);

13
15
12
14
Garbage Value

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What does the following declaration mean?int (*ptr)[10];

ptr is a pointer to an array of 10 integers
ptr is an array of 10 integers
ptr is array of pointers to 10 integers
ptr is an pointer to array

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
Runtime error
Syntax error
4
4 5 6 7

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
↑