• 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:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here}

None of These
Garbage Value
1
10

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);}

7 3
3 7
3 8
None of these
8 3

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));}

2, 0
0, 2
2, 4
4, 4
2, 2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

rem = 3.14 % 2.1;
rem = modf(3.14, 2.1);
Remainder cannot be obtain in floating point division.
rem = fmod(3.14, 2.1);

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the program if the array begins at address 65486?#includevoid main(){ int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u", arr, &arr);}

65486, 65488
65486, 65490
65486, 65486
None of these
65486, 65487

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);}

3 4
2 4
2 2
2 3
3 3

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
↑