When we mention the prototype of a function?
Point out the error in the following program (if it is compiled with Turbo C compiler).
#include<stdio.h> int main() { display(); return} void display() { printf("IndiaBIX.com"); }
Which of the declaration is correct?
Size of short integer and long integer would vary from one platform to another.
A long double can be used if range of a double is not enough to accommodate a real number.
Is there any difference in the following declarations? int myfun(int arr[]);int myfun(arr[20]);
Point out the error in the following program.
#include<stdio.h> int main() { void v = printf("%d", v); return}
Which of the following operations are INCORRECT?
int i = 35; i = i%5;
short int j = 255; j = j;
long int k = 365L; k = k;
float a = 3.14; a = a%3;
Range of float id -2.25e+to 2.25e+308
A float is 4 bytes wide, whereas a double is 8 bytes wide.
Suppose a program is divided into three files ff2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?
#include<stdio.h> struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return}
Which of the following correctly represents a long double constant?
If the definition of the external variable occurs in the source file before its use in a particular function, then there is no need for an extern declaration in the function.
Size of short integer and long integer can be verified using the sizeof() operator.
Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.
Which of the following is correct about err used in the declaration given below?
typedef enum error { warning, test, exception } err;
Which of the structure is incorrcet?
struct aa { int a; float b; };
struct aa { int a; float b; struct aa var; };
struct aa { int a; float b; struct aa *var; };
Range of double is -1.7e-to 1.7e+(inbit platform - Turbo C under DOS)
Please disable the adBlock and continue. Thank you.