• 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(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);}

Error
0 0 0
1 1 1
garbage values

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }}

2 2 2 2 2 2 3 4 6 5
2.8 2.8 2.8 2.8 2.8 2.8 3.4 4
2 3 4 6 5 2 3 4 6 5
2.8 3.4 4 6.7 5 2.8 3.4 4 6.7

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

Syntax error
065 65
053 65
53 65
65 65

ANSWER DOWNLOAD EXAMIANS APP

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

None of these.
0.000000
10
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Which of the following is not a correct variable type?

int
real
float
char
double

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Choose the correct statement.I.   The scope of a macro definition need not be the entire program.II.  The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV.  A macro definition may go beyond a line.

I, II, III and IV
I and II
II and III
I, II and III
II, III and IV

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
↑