write a program in c language to print your bio-data on the
screen by using functions.
Answers were Sorted based on User's Feedback
Answer / shonali
#include<stdio.h>
void main()
{
char n[],fn[],add[],qu;
printf("Enter name of the student");
scanf("%s\n",&n);
printf("Father's Name");
scanf("%s\n",&fn);
printf("Address");
scanf("%s\n",&add);
printf("qualification");
scanf("%s\n",qu);
}
| Is This Answer Correct ? | 212 Yes | 114 No |
Answer / advait shastri
#include<stdio.h>
#include<conio.h>
void main()
{
char name[15],lname[15];
long contact;
char city[15];
clrscr();
printf("\nEnter your full name:");
scanf("%s %s",&name,&lname);
printf("\nEnter your contact:");
scanf("%ld",&contact);
printf("\nEnter your city:");
scanf("%s",&city);
printf("\nYour name:%s %s",name,lname);
printf("\nYour contact:%ld",contact);
printf("\nYour city:%s",city);
getch();
}
| Is This Answer Correct ? | 82 Yes | 49 No |
Answer / jeyasuriya m
#include<stdio.h>
int main()
{
char name[20],fathername[20],qualification[20];
int age,dob;
printf("Student name :");
scanf("%s",&name);
printf("Father name :");
scanf("%s",&fathername);
printf("Qualification :");
scanf("%s",&qualification);
printf("Age :");
scanf("%d",&age);
printf("Date Of Birth :");
scanf("%d",&dob);
printf("Student name :%s
",name);
printf("Father name :%s
",fathername);
printf("Qualification :%s
",qualification);
printf("Age :%d
",age);
printf("Date Of Birth :%d
",dob);
}
| Is This Answer Correct ? | 39 Yes | 20 No |
Answer / ogaleye victor
#include<stdio.h>
void main()
char name address qualification age
printf("Ayomide Victor");
printf("32 anifowobi crescent Ikeja");
printf("B.sc computer science, ");
printf("19 years");
| Is This Answer Correct ? | 2 Yes | 7 No |
Answer / karan panwar
#include<stdio.h>
#include<conio.h>
void main()
{
clrser();
char n[],fn[],add[],qu;
printf("karan kumar panwar");
printf("prahlad panwar");
printf("h.no.38-b railway training centre near shukhadiya cracle");
printf("secondary & senior secondary passed");
getch();
}
| Is This Answer Correct ? | 21 Yes | 34 No |
What is putchar() function?
What is sizeof c?
What is calloc in c?
Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...
main() { enum _tag{ left=10, right, front=100, back}; printf("%d, %d, %d, %d", left, right, front, back); }
What functions are in conio h?
please give code for this 1 2 4 7 11 16
What is pointer & why it is used?
Describe the steps to insert data into a singly linked list.
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?
main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.
1 232 34543 4567654 can anyone tell me how to slove this c question