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 ? | 82 Yes | 49 No |
Post New Answer View All Answers
What are the Advantages of using macro
What is the value of c?
Do you know the use of fflush() function?
Define Spanning-Tree Protocol (STP)
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Explain how can I avoid the abort, retry, fail messages?
Can the curly brackets { } be used to enclose a single line of code?
What is an lvalue in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is a 'null pointer assignment' error?
When should a far pointer be used?
What do you understand by normalization of pointers?
Explain output of printf("Hello World"-'A'+'B'); ?
Explain two-dimensional array.
What is define directive?