• 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]?

Garbage Value
2
0
3
1

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);}

2 3
2 2
3 3
2 4
3 4

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");}

Equal
Unequal
None of these.
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);}

9
11
None of These
10

ANSWER DOWNLOAD EXAMIANS APP

C Programming
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code?

7
6
12
It will not compile because not enough initializers are given
24

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Standard ANSI C recognizes ______ number of keywords?

32
30
36
24
40

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
↑