• 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++));}

4
6
Error
5

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 not pointers to integer.
ptr is pointer to integer, p may or may not be.
ptr and p, both are pointers to integer.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Size of the array need not be specified, when

Initialization is a part of definition
It is a declaratrion
All of these
It is a formal parameter

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here}

1
None of These
Garbage Value
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 III
I and II
III and IV
II and IV
II and III

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of given program?#includevoid main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);}

complier error
1
-1
1 -1 1
1 -1 -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
↑