• 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 not; not = !2; printf("%d", not);}

2
None of These
Garbage Value
0

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Pick the correct statements.I.   The body of a function should have only one return statement.II.  The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment.

I and II
III and IV
II and III
I and III
II and IV

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); }

Some address will be printed
None of these.
Hello
H

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } }

exam is printed
Compiler Error
Nothing is printed
XAM is printed

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int i=5, j=6, z; printf("%d", i+++j);}

12
11
None of These
13

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
↑