• 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:#include#define a 10void main(){ #define a 50 printf("%d", a);}

10
None of These
50
Compiler Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);}

Compiler time error
Segmentation fault/runtime crash
Undefined behavior
10

ANSWER DOWNLOAD EXAMIANS APP

C Programming
void main(){ int a=10, b; b = a++ + ++a; printf("%d %d %d %d", b, a++, a, ++a);}what will be the output when following code is executed?

22 14 12 13
22 11 11 11
22 12 12 13
12 10 11 13
22 13 14 14

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the correct value to return to the operating system upon the successful completion of a program?

1
-1
2
Program do no return a value.

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is right way to Initialize array?

int num[6] = { 2, 4, 12, 5, 45, 5 };
int n(6) = { 2, 4, 12, 5, 45, 5 };
int n{6} = { 2, 4, 12 };
int n{} = { 2, 4, 12, 5, 45, 5 };

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int c = - -2; printf("c=%d", c);}

1
2
-2
Error

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
↑