What will be the output of the program code?#include<stdio.h>#define a 10void main(){ #define a 50 printf("%d", a);} None of These 50 10 Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} None of these. 10 9 11 TRUE ANSWER : ? YOUR ANSWER : ?
What is function? Function is a block of code that performs a specific task. It has a name and it is reusable. Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of statements that perform some specific task. All of these TRUE ANSWER : ? YOUR ANSWER : ?
A preprocessor command need not start on the first column comes before the first executable statement need not start on a new line has # as the first character TRUE ANSWER : ? YOUR ANSWER : ?
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 4, c = 8 b = 4, c = 6 a = 4, c = 6 b = 3, c = 6 a = 3, c = 8 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} Error %d\n None of These 300 TRUE ANSWER : ? YOUR ANSWER : ?
What is the maximum number of dimensions an array in C may have? 8 20 2 Theoratically no limit. The only practical limits are memory size and compilers. 50 TRUE ANSWER : ? YOUR ANSWER : ?
The declarationint (*p) [5];means p is one dimensional array of size 5, of pointers to integers. The same as int *p[ p is a pointer to a 5 elements integer array. None of these. TRUE ANSWER : ? YOUR ANSWER : ?
The default parameter passing mechanism is call by value call by value result call by reference None of these. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 2 0 0 0 0 2 1 0 0 1 3 0 0 0 1 3 1 TRUE ANSWER : ? YOUR ANSWER : ?