Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~316 People Reached
Favorite Forums
Favorite Tags
Member Avatar for hassje

#include<stdio.h> #include<conio.h> #include<string.h> struct student { int*ptr[23]; char*name[12];//store address of character string }s1; void main() { int roll=20; //char n='s'; s1.ptr=&roll;//ERROR s1.name="zahid ali";//ERROR printf("roll no of student :%d\n",*s1.ptr); printf("name of student:%s\n",s1.name); getch(); }//plase coorect this error

Member Avatar for rustysynate
0
157
Member Avatar for hassje

#include<stdio.h> #include<conio.h> struct Book { char bname[20]; int pages; char author[20]; float price; }b1[3]; void main() { struct Book b1[3]={ {"BOOK1",700,"ypk",12.98}, {"BOOK2",500,"aak",350.00}, {"BOOk3",120,"HST",450} }; for(int i=0;i>3;i++) printf("%d\n",b1[i]); getch(); } iwant output book1 700 ypk 12.98 book2 500 aak 350.00 book3 120 hst 450.

Member Avatar for ddanbe
0
159