• 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
Which operator has the lowest priority?

++
||
%
+
&&

ANSWER DOWNLOAD EXAMIANS APP

C Programming
#includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);}

11, 10
10, 11
11, 11
10, 10

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);}

x=4
x=1
x=5
x=0
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);}

fff2
fff0
fff4
fff1
fff3

ANSWER DOWNLOAD EXAMIANS APP

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

12
1
11
Error

ANSWER DOWNLOAD EXAMIANS APP

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

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

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
↑