Array string relation

 // string array character in c

#include <stdio.h>


int main()

{

   char name []= "rohit parmar";

   char *p = "rohit parmar ";

   p = "vishal parmar";

    printf("name is %s" , p);


    return 0;

}

Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation