Answer Posted / gopi
An Array is a group of elements in a different datatype
| Is This Answer Correct ? | 11 Yes | 9 No |
Post New Answer View All Answers
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What does it mean when a pointer is used in an if statement?
Where can I get an ansi-compatible lint?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Compare array data type to pointer data type
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is the basic structure of c?
What are the different file extensions involved when programming in C?
What is strcmp in c?
What does c mean before a date?
What is the difference between void main and main in c?
What is the right type to use for boolean values in c? Is there a standard type?
writ a program to compare using strcmp VIVA and viva with its output.
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?