• 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(){ printf("%d, %d", sizeof(int *), sizeof(int **));}

4, 4
2, 4
0, 2
2, 2
2, 0

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The declarationint (*p) [5];means

None of these.
The same as int *p[
p is a pointer to a 5 elements integer array.
p is one dimensional array of size 5, of pointers to integers.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the base data type of a pointer variable by which the memory would be allocated to it?

Depends upon the type of the variable to which it is pointing.
float
int
No data type
unsigned int

ANSWER DOWNLOAD EXAMIANS APP

C Programming
In an expression involving || operator, evaluationI.   Will be stopped if one of its components evaluates to falseII.  Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV.  Takes place from left to right

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;}

a[0] = 3
a[1] = 3
a[1] = 2
Compilation error
a[0] = 2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Array passed as an argument to a function is interpreted as

Values of the first elements of the array.
Address of the array.
Number of element of the array.
Address of the first element of the array.

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
↑