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


Please Help Members By Posting Answers For Below Questions

What are the advantages and disadvantages of c language?

555


Why are all header files not declared in every c program?

596


How do we declare variables in c?

561


What is array within structure?

578


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

812






What is operator promotion?

623


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

666


How do I convert a string to all upper or lower case?

624


How is actual parameter different from the formal parameter?

585


What are the two types of functions in c?

561


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2570


Why is c called c not d or e?

603


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.

1657


Can we change the value of #define in c?

581


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1256