strchr used in c

 //strchr is string character . we can check wheather

// character present in function or nnot also find the

//memory address of char


#include <stdio.h>

#include <string.h>

int main()

{

    char c []= "rohit parmar";

    char *p ;


   p = strchr(c , 'z');

   printf("%c is present at %p " ,*p , p );

 return 0;

}


Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation