Multi Choice Type QuestionWhich of the following is not a valid field type in a structure?Marks : 1Negative Marks : 0Answer hereAnother structureArrayFunctionPointer
Question
Multi Choice Type QuestionWhich of the following is not a valid field type in a structure?Marks : 1Negative Marks : 0Answer hereAnother structureArrayFunctionPointer
Solution
The correct answer is "Function". In a structure, you can have another structure, an array, or a pointer as a field type. However, you cannot have a function as a field type.
Similar Questions
Multi Choice Type QuestionWhich operator connects the structure name to its member name?Marks : 1Negative Marks : 0Answer here-<-.+
Multi Choice Type QuestionIn a structure, what does the dot . operator do?Marks : 1Negative Marks : 0Answer hereAccesses a member of a structureMultiplies two structure membersConnects two structuresDefines a new structure
Multi Choice Type QuestionWhich operator is used to access data members of the outer structure?Marks : 1Negative Marks : 0Answer hereSingle dot (.)Double dot (..)Underscore (_)None of the mentioned options
Multi Choice Type QuestionWhich of these is the correct way to declare a structure variable after defining a structure in C?Marks : 1Negative Marks : 0Answer herestruct point p1, p2;point struct p1, p2;struct point = {p1, p2};point p1, p2;
Multi Choice Type QuestionIn a nested structure, which member takes precedence if there is a naming conflict between an inner and an outer member?Marks : 1Negative Marks : 0Answer hereThe inner member.The outer member.It depends on the order of declaration.It results in a compilation error.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.