Easy Tutorial
For Competitive Exams

include

main()

{

struct xx

{

int x=3;

char name[]="hello";

};

struct xx *s=malloc(sizeof(struct xx));

printf("%d",s->x);

printf("%s",s->name);

}

Compiler error
hello
3
none
Explanation:

Compiler Error ,Initialization should not be done for structure members inside the structure declaration

Additional Questions

Which of the following command is used to display the directory attributes rather than its contents ?

Answer

The SQL WHERE clause:

Answer

Which of the following is not considered to be a basic element of an enterprise-class database system?

Answer

S1: A gentleman who lived alone always had two plates placed on the table at dinner time.

P : One day just as he sat down to dine, the cat rushed in to the room.

Q : One plate was for himself and other was for his cat.

R : She drooped a mouse into her own plate and another into her master plate.

S : He used to give the cat a piece of meat from his own plate.

S6: In this way the cat showed her gratitude to her master.

The Proper sequence should be:

Answer

S1: Satyajit Ray made several films for children.

P : Later film makers have followed his lead.

Q : Today other nations are making the childrens film in a big way.

R : This was at a time when no director considered children as potential audience.

S : Ray was, thus, a pioneer in the field.

S6: But today few think of Ray as a maker of childrens films.

The Proper sequence should be:

Answer

In the following questions choose the word which is the exact OPPOSITE of the given words.

VANITY

Answer

MALICIOUS

Answer

STRINGENT

Answer

CORPOREAL:SPIRITUAL

Answer

In one hour, a boat goes 11 km/hr along the stream and 5 km/hr against the stream. The speed of the boat in still water (in km/hr) is:

Answer
Share with Friends
Privacy Copyright Contact Us