• 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
Find the output of the following program. void main() { int i=01289; printf("%d", i); }

Syntax error
1289
0713
713
0289

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Who is father of C Language?

F. Codd
Dennis Ritchie
Dr.
Gosling
James
Bjarne Stroustrup

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));}

2 1
2 2
1 1
1 2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);}

will print Hello World
None of these.
will print garbage value
Compilation Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What is the base data type of a pointer variable by which the memory would be allocated to it?

int
Depends upon the type of the variable to which it is pointing.
unsigned int
No data type
float

ANSWER DOWNLOAD EXAMIANS APP

C Programming
char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above?

bcdefg
fg
defg
efg
cdefg

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
↑