• 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 QUIZ

Which of the following operator takes only integer operands?

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of following is not a valid name for a C variable?

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:#include<stdio.h>void main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); }

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output given program?#include<stdio.h>void main(){int i = -10;for(;i;printf("%d ", i++));}

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");}

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }}

TRUE ANSWER : ?
YOUR ANSWER : ?

#include<stdio.h>void main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);}

TRUE ANSWER : ?
YOUR ANSWER : ?
MORE MCQ

QUIZ STATS

  • 0
  • 0

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
↑