Tuesday, 27 August 2013

c program printing upto end of the string fastest way

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

int main()
{
    char s[20]="rajashekar";
    int i=0;
   
    while(!(*(s)))
    {
                     printf("%c",s[i]);
                     }
                    
                     getch();
                     return 0;
                     }

No comments:

Post a Comment