Saturday, January 8, 2011

BASIC C PROG FOR STRING

#include<stdio.h>
#include<string.h>
#include<conio.h>

void main(){
 char name[50];   // Creates array for storing string

 clrscr();
 printf("Enter your name: ");
 scanf("%s",name);

 printf("\n\nHELLO %s",name);
 getch();
}

/************* OUTPUT ******************/

program by - NINAD
please comment !!!!

No comments:

Post a Comment