20120113

Program in Cto learn strings using pointers in C

//========================
//Program in Cto learn strings pointers in C, stringptr.c
//========================
#include<stdio.h>
int main()
{
char name[]="Karnighan";
int *ptr;
ptr=name;
        int i=0;
        while(*ptr != '\0')
        {
        printf("%c",*ptr);
        ptr++;
        }
return 0;
}


Previous                             Home                               Next

No comments:

Post a Comment