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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the -> in c?

585


Write a program to reverse a given number in c language?

620


Can we declare a function inside a function in c?

590


Why do we use int main instead of void main in c?

622


How do you write a program which produces its own source code as output?

608






Are the variables argc and argv are always local to main?

574


What is static identifier?

704


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1202


What are the 4 types of functions?

573


Why do we use namespace feature?

583


Difference between Shallow copy and Deep copy?

1572


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

1663


What is #include called?

568


What is an identifier?

629


Stimulate calculator using Switch-case-default statement for two numbers

2448