• 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 number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i);

7
8
5
9
6

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is right way to Initialize array?

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));}

Error
6
4
5

ANSWER DOWNLOAD EXAMIANS APP

C Programming
char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed?

y=EDA
y=VEDA
y=MVEDA
y=AMVEDA
y=EXAMIANS

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which operator from the following has the lowest priority?

Comma operator
Assignment operator
Division operator
Conditional operator
Unary-operator

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i);

10
0
Syntax error
Infinite loop
0123456789

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
↑