• 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
char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above?

efg
defg
bcdefg
fg
cdefg

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);}

65 65
065 65
053 65
Syntax error
53 65

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int c = - -2; printf("c=%d", c);}

1
Error
-2
2

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The statement int **a;

is syntactically and semantically correct
None of these.
is legal but meaningless
is illegal

ANSWER DOWNLOAD EXAMIANS APP

C Programming
The address operator &, cannot act on

Members of a structure
Local variables
R-values
Arithmetic expressions
Both of the above

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);}

Undefined behavior
10
Segmentation fault/runtime crash
Compiler time error

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
↑