write a program in c language to print your bio-data on the
screen by using functions.
Answer Posted / 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 ? | 78 Yes | 49 No |
Post New Answer View All Answers
What are the advantages and disadvantages of c language?
Why are all header files not declared in every c program?
How do we declare variables in c?
What is array within structure?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is operator promotion?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
How do I convert a string to all upper or lower case?
How is actual parameter different from the formal parameter?
What are the two types of functions in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Why is c called c not d or e?
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.
Can we change the value of #define in c?
#include