In the following program add a statement in the function fun () such that the address of a gets stored in j.
What are the following notations of defining functions known as?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Is the following statement a declaration/definition. Find what does it mean?
int (*x)[10];
What is the output for the program given below
typedef enum errorType{warning, error, exception,}error;
main()
{
error g1;
g1=1;
printf("%d",g1);
}
What is the output for the program given below
typedef struct error{int warning, error, exception;}error;
main()
{
error g1;
g1.error =1;
printf("%d",g1.error);
}
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
Is there any difference between the two declarations,
1. int foo(int *arr[]) and
2. int foo(int *arr[2])
Is the following code legal?
struct a
{
int x;
struct a b;
}
Is the following code legal?
void main()
{
typedef struct a aType;
aType someVariable;
struct a
{
int x;
aType *b;
};
}
Which version do you prefer of the following two,
1) printf(%s, str); // or the more curt one
2) printf(str);
Find the output.
main()
{
char a[4]="HELL";
printf("%s",a);
}
85 docs|57 tests
|
85 docs|57 tests
|