C
Programming and Technical
Category
Which of the following is the correct syntax for declaration of a structure?
Select one:
struct_name;
Struct struct_name;
struct
{
Struct_name;
}
struct struct_name;
Read Solution (Total 14)
-
- struct struct_name;
- 9 years agoHelpfull: Yes(4) No(0)
- struct struct_name;
- 9 years agoHelpfull: Yes(2) No(0)
- the correct syntax is: Struct struct_name;
- 7 years agoHelpfull: Yes(1) No(0)
- struct struct_name; is correct
- 7 years agoHelpfull: Yes(1) No(0)
- struct struct_name;
- 6 years agoHelpfull: Yes(1) No(0)
- option 4 is correct
- 9 years agoHelpfull: Yes(0) No(0)
- struct struct_name //declaration
{
// body for datatype declaration
} - 9 years agoHelpfull: Yes(0) No(0)
- it's last one :=4,struct struct_name because syntax of structure is like
struct struct_name{
variables;
}structure_variable;
or without variables it's simply
struct struct_name; only - 7 years agoHelpfull: Yes(0) No(0)
- struct
{
Struct_name;
}
struct struct_name; - 6 years agoHelpfull: Yes(0) No(1)
- struct name
- 6 years agoHelpfull: Yes(0) No(1)
- Struct struct_name;
- 5 years agoHelpfull: Yes(0) No(0)
- struct_name
- 5 years agoHelpfull: Yes(0) No(0)
- the correct syntax is struct struct_name
- 5 years agoHelpfull: Yes(0) No(0)
- struct
{
struct_name;
} - 2 years agoHelpfull: Yes(0) No(0)
C Other Question