IS STRUCTURES CAN BE USED WITHIN AN ARRAY?
Answer Posted / shruti
yesss.
we do used structures within arrays..
struct student
{
char name[20];
int roll_no;
}s[10]
this is array of structures..
we use "."(dot) operator to access the element
s[i].name = ""
s[i].roll_no = ...
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
I need testPalindrome and removeSpace
#include
How does #define work?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What does %p mean?
Explain what is the difference between a free-standing and a hosted environment?
what is a constant pointer in C
Explain the red-black trees?
How can you read a directory in a C program?
What is exit() function?
Explain the difference between call by value and call by reference in c language?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What is pragma c?
What are # preprocessor operator in c?
Why pointers are used in c?
program for reversing a selected line word by word when multiple lines are given without using strrev