Printing of string


//program to demonstrate printing of string

#include<stdio.h>
#include<conio.h>
void main()
{
 static char name[]="Kavindra";
 int i=0;

 while(i<=8)
 {
  printf("%c",name[i]);
  i=i+1;
 }

getch();
}

Post a Comment

Previous Post Next Post