Concept of String.
#include <stdio.h>
#include <conio.h>
void main ( )
{
char n1, n2, n3, n4;
clrscr ( );
printf("\n\t\t\t Enter a character....:"); scanf("%c", &n1);
fflush (stdin); /* For clearing stander input buffer */
printf("\n\t\t\t Enter a character....:"); n2 = getchar ( ); /* Single characters input function */
fflush (stdin);
printf("\n\t\t\t Enter a character....:"); n3 = getche ( ); /* Single characters input function */
fflush (stdin);
printf("\n\t\t\t Enter a character....:"); n4 = getch ( ); /* Single characters input function */
printf("\n\n\n\t\t\t Character is......: %c", n1);
printf("\n\n\n\t\t\t Character is......: %c", n2);
printf("\n\n\n\t\t\t Character is......: %c", n3);
printf("\n\n\n\t\t\t Character is......: %c", n4);
getch ( );
}
Click here to contact us
#include <stdio.h>
#include <conio.h>
void main ( )
{
char n1, n2, n3, n4;
clrscr ( );
printf("\n\t\t\t Enter a character....:"); scanf("%c", &n1);
fflush (stdin); /* For clearing stander input buffer */
printf("\n\t\t\t Enter a character....:"); n2 = getchar ( ); /* Single characters input function */
fflush (stdin);
printf("\n\t\t\t Enter a character....:"); n3 = getche ( ); /* Single characters input function */
fflush (stdin);
printf("\n\t\t\t Enter a character....:"); n4 = getch ( ); /* Single characters input function */
printf("\n\n\n\t\t\t Character is......: %c", n1);
printf("\n\n\n\t\t\t Character is......: %c", n2);
printf("\n\n\n\t\t\t Character is......: %c", n3);
printf("\n\n\n\t\t\t Character is......: %c", n4);
getch ( );
}
Click here to contact us
No comments:
Post a Comment