Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a c program to store and print name,address,roll.no of
a student using structures?

Answers were Sorted based on User's Feedback



write a c program to store and print name,address,roll.no of a student using structures?..

Answer / balaji ganesh

#include<string.h>
#include<conio.h>
#include<stdio.h>
struct student
{
char name[20],adr[5][10];
int no;
}s;
main()
{
int i,j;
clrscr();
scanf("%d",&s.no,printf("enter no of the student:"));
scanf("%s",s.name,printf("enter name of student:"));
printf("enter address(5 lines):\n");
for(i=0;i<=5;i++)
{
j=0;
while((s.adr[i][j++]=getchar())!='\n');
}
printf("\nstudent details are:\n\nRoll.no: %d\n\nName : %s\n\nadress:",s.no,s.name);
for(i=0;i<=5;i++)
printf("\t%s",s.adr[i]);
getch();
}

Is This Answer Correct ?    139 Yes 97 No

write a c program to store and print name,address,roll.no of a student using structures?..

Answer / raj

#include<string.h>
#include<conio.h>
#include<stdio.h>
struct student
{
char name[20],adr[5][10];
int no;
}s;
main()
{
int i,j;
clrscr();
scanf("%d",&s.no,printf("enter no of the student:"));
scanf("%s",s.name,printf("enter name of student:"));
printf("enter address(5 lines):\n");
for(i=0;i<=5;i++)
{
j=0;
while((s.adr[i][j++]=getchar())!='\n');
}
printf("\nstudent details are:\n\nRoll.no: %d\n\nName :
%s\n\nadress:",s.no,s.name);
for(i=0;i<=5;i++)
printf("\t%s",s.adr[i]);
getch();
}

Is This Answer Correct ?    33 Yes 28 No

write a c program to store and print name,address,roll.no of a student using structures?..

Answer / fasfasdfdsaf

http://www.cprogrammingexpert.com/C/Tutorial/fundamentals/datatypes/data_types.aspx

Is This Answer Correct ?    8 Yes 18 No

write a c program to store and print name,address,roll.no of a student using structures?..

Answer / nidhina

enter the number of students 2
enter the name anu
enter the address ui
fh
fn
hg
hgn


rollno 2
name anu
address
ui fh
fn
hg
hgn

Is This Answer Correct ?    2 Yes 15 No

write a c program to store and print name,address,roll.no of a student using structures?..

Answer / laxmi bose

#include<stdio.h>
#include<string.h>
#include<conio.h>
struct laxmi
{
int rollname;
char name;
char address;
}struct laxmi l;
void main()
{
scanf("%d%c%c",&rollname,name,address);
printf("%d%c%c",roolname,name,address);
}

Is This Answer Correct ?    54 Yes 88 No

write a c program to store and print name,address,roll.no of a student using structures?..

Answer / krunal patel

I MA KRUNAL PATEL

Is This Answer Correct ?    15 Yes 54 No

write a c program to store and print name,address,roll.no of a student using structures?..

Answer / carrie

write a program to accept a salesman name and monthly sales
amount and calculate the commision as per the given criteria
SALES COMMISION
<=10000 0
>10000 and <=25000 10% of sales amount
>25000 and <=100000 20% of sales amount
>100000 25% of sales amount

Is This Answer Correct ?    12 Yes 59 No

Post New Answer

More C Interview Questions

main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

0 Answers   Wilco,


What is volatile variable how do you declare it?

0 Answers  


What 'lex' does?

0 Answers   Tech Mahindra,


Write a program to add a given duration with time(24hrs format)

1 Answers   Protech,


What are the 4 types of organizational structures?

0 Answers  


What is the purpose of the statement: strcat (S2, S1)?

0 Answers  


What is c++ used for today?

0 Answers  


Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,


What is the Difference between Macro and ordinary definition?

3 Answers   Bosch, Cognizant, College School Exams Tests, Motorola,


the question is that what you have been doing all these periods (one year gap)

0 Answers   HCL,


what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

0 Answers  


what is difference between overriding and overloading?

1 Answers  


Categories