Top

Typedef

Answer: A

No answer description available for this question.
 

Enter details here

22.

What is x in the following program?

#include

int main()
{
    typedef char (*(*arrfptr[3])())[10];
    arrfptr x;
    return 0;
}

 

Answer: C

No answer description available for this question.

Enter details here

23.

The type of linked list in which the node does not contain any pointer or reference to the previous node is _____________

Answer: B

A singly linked list is one in which each node has two fields, namely data field and pointer field. Data field stores the data and the pointer field points to the address of the next node.

Enter details here

Answer: C

No answer description available for this question.
 

Enter details here

25.

Point out the error in the following code?

typedef struct
{
    int data;
    NODEPTR link;
}*NODEPTR;

 

Answer: B

No answer description available for this question.

Enter details here

26.

Which option should be selected to work the following C expression?

string p = "HELLO";

 

Answer: B

No answer description available for this question.
 

Enter details here

27.

Are the properties of i, j and x, y in the following program same?

typedef unsigned long int uli;
uli i, j;
unsigned long int x, y;

 

Answer: A

No answer description available for this question.

Enter details here

28.

Local variables are stored in an area called ___________

Answer: D

No answer description available for this question.

Enter details here

29.

What is the size of myArray in the code shown below? (Assume that 1 character occupies 1 byte)

typedef char x[10];
x myArray[5];

 

Answer: D

The size of myArray will be equal to 50 bytes. In the code shown above, we have defined a character array x, of size 10. Hence the output of the code shown above is 10*5 = 50 bytes.

Enter details here

30.

Is there any difference in the #define and typedef in the following code?

typedef char * string_t;
#define string_d char *;
string_t s1, s2;
string_d s3, s4;

 

Answer: A

No answer description available for this question.

Enter details here

Loading…
Tags: Typedef Questions and Answers || Typedef MCQ Questions and Answers || Typedef GK Questions and Answers || Typedef GK MCQ Questions || Typedef Multiple Choice Questions and Answers || Typedef GK || GK on Typedef || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming