Q:
Guess the output void main() { char a = 'a'; int x = (a % 10)++; printf("%d\n", x); }
belongs to collection: C Programming Multiple Choice Questions And Answers
C Programming Multiple Choice Questions And Answers
- Find out the Output int main() { unsigned int i=65000 while ( i++ != 0 ) printf("%d",i) return 0 }
- Find out the Output #include int main() { int i; #if A printf("Enter any number:"); scanf("%d", &i); #elif B printf("The number is odd"); return 0; }
- Spot The Error
- Which of the data types has the size that is variable?
- maximum value of unsigned interger when interger needs two bye of storage
- Find out the error #include #include int main() { void display(char *s, int num1, int num2, ...); display("Hello", 4, 2, 12.5, 13.5, 14.5, 44.0); return 0; } void display(char *s, int num1, int num2, ...) { double c; char s; va_list ptr; va_start(ptr, s); c = va_arg(ptr, double); printf("%f", c); }
- Tick the statement which is not supported by C
- enum types are processed by
- Guess the output int main() { int a = 5; int b = 10; { int a = 2; a++; b++; } printf("%d %d", a, b); return 0; }
- Which of the following is not a data types
- Can we pass a variable argument list to a function at run-time?
- No of keywords in C
- Guess the output void main() { char a = 'a'; int x = (a % 10)++; printf("%d\n", x); }
- Assume the output #include int main() { int x = 10, *y, **z; y = &x; z = &y; printf("%d %d %d", *y, **z, *(*z)); return 0; }
- Pick up the false statement
- Which of the following symbol is used in variable name
- Tick the type of linkages
- Which Keyword is used to prevent any changes in the value of the variable
- C variable cannot start with a
- Find out the Output int main() { printf("\new_c_question\by"); printf("\rgeeksforgeeks"); getchar(); return 0; }
- Output is #include int main() { int i = -3; int k = i % 2; printf("%d\n", k); }
- We can not declare a multuple function with same name?
- Function used in round off the value
- Predict the output
- Which of the following is not an output
- Real number is treated as
- No of loops in C
- The statement below is declaration or definition
- Which of the following data type will throw an error on modulus operation(%)?
- Output is #include void main() { int x = 1, y = 0, z = 5; int a = x && y && z++; printf("%d", z); }
- The concept of two functions with same name is know as?
- Find out the Output int main() { int B B = 10 printf("%d", B) return 0 }
- getch() belongs to which header file
- Guess the output #include int main() { int a = 10; double b = 5.6; int c; c = a + b; printf("%d", c); }
- Can we run program without a main() function
- Printing a character as an integer
- Are logical operator sequence points?
- Mark the statement excuted by Preprocessor
- Assume the output int main() { char *ptr1, *ptr2; printf("%d %d", sizeof(ptr1), sizeof(ptr2)); return 0; }
- Static variable means
- C programming language by itself provides
- We can use relational operators as
- What is the output? #include int main() { int i = 1; if (i++ && (i == 1)) printf("Yes\n"); else printf("No\n"); }
- Find out the Output int fun(char *str1) { char *str2 = str1; while(*++str1); return (str1-str2); } int main() { char *str = "geeksforgeeks"; printf("%d", fun(str)); getchar(); return 0; }
- Find out the error #include int main() { display(); return 0; } void display() { printf("IndiaBIX.com"); }
- What is the output?#include int main() { int i = 0, j = 0; if (i && (j = i + 10)) //do something ; }
- Guess the output #include int main() { int x = 1, y = 0, z = 3; x > y ? printf("%d", z) : return z; }
- Find out the error #include struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; }
- How many times tutorial links are present
- Find out the Output int main() { int a = 10.5; printf("%d",a); return 0; }
- The declaration "unsigned u" indicates u is a/an
Correct Answer:
Compiler Error
need an explanation for this answer? contact us directly to get an explanation for this answer