• 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
int a[5] = {1,2,3}What is the value of a[4]?

1
2
0
Garbage Value
3

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);}

b = 4, c = 6
a = 3, c = 8
a = 4, c = 8
a = 4, c = 6
b = 3, c = 6

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); }

None of these.
Hello
Some address will be printed
H

ANSWER DOWNLOAD EXAMIANS APP

C Programming
If ASCII value of 'x' is 120, then what is the value of the H, ifH = ('x' – 'w' ) / 3;

0
1
3
2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following function calculates the square of 'x' in C?

power(2, x)
sqr(x)
pow(2, x)
power(x, 2)
pow(x, 2)

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);}

Error
%d\n
None of These
300

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
↑