• 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

What will be the output of the following program? #include\<stdio.h> int main(){  extern int i;  i = 20;  printf("%ld ", sizeof(i));  return 0; }

TRUE ANSWER : ?
YOUR ANSWER : ?

The default parameter passing mechanism is

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

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}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); }

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));}

TRUE ANSWER : ?
YOUR ANSWER : ?

The library function used to find the last occurrence of a character in a string is

TRUE ANSWER : ?
YOUR ANSWER : ?

Array passed as an argument to a function is interpreted as

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);}

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
↑