• 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 c = - -2; printf("c=%d", c);}

1
2
-2
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);}

Garbage value 0
Garbage vlaue Garbage Value
0 0
Code will not compile
0 Garbage Value

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the output of the following statements?int i = 0;printf("%d %d", i, i++);

1 0
1 1
None of these
0 1
0 0

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Size of the array need not be specified, when

It is a formal parameter
All of these
It is a declaratrion
Initialization is a part of definition

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);}

0
Compiler Error
5
7
6

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The library function used to find the last occurrence of a character in a string is

strrchr()
strnstr()
None of these
laststr()
strstr()

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
↑