• 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
What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC");

-1
33
0
1
Compilation Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following is correct way to define the function fun() in the below program?#includevoid main(){ int a[3][4]; fun(a);}

void fun(int *p[3][4]){}
void fun(int *p[][4]){}
void fun(int p[][4]){}
None of these
void fun(int *p[4]){}

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));}

Linker Error
2
20
Compiler Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The address operator &, cannot act on

Both of the above
Members of a structure
Arithmetic expressions
Local variables
R-values

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char not; not = !2; printf("%d", not);}

None of These
0
Garbage Value
2

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
↑