Answer Posted / guest
The pointer you declared is p, not *p.
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What is the difference between exit() and _exit() function?
What is meant by 'bit masking'?
Is c still relevant?
Explain can static variables be declared in a header file?
Why is it important to memset a variable, immediately after allocating memory to it ?
What does nil mean in c?
What is array of structure in c?
Why do we use int main?
What is size of union in c?
How do we declare variables in c?
What is the difference between far and near in c?
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); }
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What are operators in c?
What are shell structures used for?