main()
{
char name[500][50];
int i=0,n;
scanf("%d",&n);
x : if(i<=n)
{
printf("Enter string");
gets(name[i]);
goto x;
}
}...
User Profile
Collapse
-
yes dear.we can use this funcion in c without using conio.h.we can run a program more efficienttly if we use this..look this example.
main()
{
char c;
prinf("Enter a char");
scanf("%c",&c);
or use this statment
c=getchar();
printf("%c",c);
getch();
getche();
}...Leave a comment:
-
hi supriya.
getchar() read a char from kyborad and assign to the variable like this..
prinf("Enter a char");
char c;
c=getchar();
getche() get a char and echo that char on moniter and can get in varilbe
main()
{
getche();
}
getch() doesnt echo tht char on display.
i think u get it...Leave a comment:
-
in this problem if u want to store names in a Array. u have to creatr a 2 - d string array. of a char type pointer to pointer.
such as
char name [23][100]
or
char *name[];
then set a varible by 0.like this
int i=0;
then read data from file using fscanf and store them in file and increase this in array variable;
this is same as number bt only use a single d array.Leave a comment:
-
hi friend,in this program u not defined j.this must be error.i can help u if u send me full program...Leave a comment:
-
plz solve this
hi friend .i cant understand tht why we cant use a float variable in structure in c langeuge in turbo c++ compiler.many time it get problem
No activity results to display
Show More
Leave a comment: