• 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
Which one of the following is not a reserved keyword for C?

main
register
auto
case
default

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the value of i and j after execution of following program?#includevoid main(){int i, j;for(i=0,j=0;i<10,j<20;i++,j++){printf("i=%d %t j=%d", i, j); }}

20 20
10 10
10 20
Run time error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }}

2.8 3.4 4 6.7 5 2.8 3.4 4 6.7
2 2 2 2 2 2 3 4 6 5
2.8 2.8 2.8 2.8 2.8 2.8 3.4 4
2 3 4 6 5 2 3 4 6 5

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);}

6
5
7
None of These

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the given program?#includevoid main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);}

10 10 11 11
10 20 21 10
10 20 21 21
10 20 21 20

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
↑