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
What is the -> in c?
Write a program to reverse a given number in c language?
Can we declare a function inside a function in c?
Why do we use int main instead of void main in c?
How do you write a program which produces its own source code as output?
Are the variables argc and argv are always local to main?
What is static identifier?
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.
What are the 4 types of functions?
Why do we use namespace feature?
Difference between Shallow copy and Deep copy?
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.
What is #include called?
What is an identifier?
Stimulate calculator using Switch-case-default statement for two numbers