• 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
If integer needs two bytes of storage, then maximum value of an unsigned integer is

216 – 1
216
215
215 – 1
None of these

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }}

three
None of These
Error
zero

ANSWER DOWNLOAD EXAMIANS APP

C Programming
What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50}

0
10..50
10..10
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));}

2 4 5
8 5 5
2 5 5
2 4 4

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);}

%d\n
300
None of These
Error

ANSWER DOWNLOAD EXAMIANS APP

C Programming
Comment on the following pointer declaration?int *ptr, p;

ptr and p both are not pointers to integer.
ptr is pointer to integer, p may or may not be.
ptr and p, both are pointers to integer.
ptr is a pointer to integer, p is not.

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
↑