Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
strchr
//Title of this code //clang 3.4 #include <stdio.h> #include <string.h> int main(void) { char str1[]="anaida",str2[]="remote",*str_ptr1,*str_ptr2; str_ptr2=strchr(str2,'t'); str_ptr1=strchr(str1,'a'); while(str_ptr2!='\0') { printf("\n found 't' at address %d and at position str[%d]",&str_ptr2,str_ptr2-str2); str_ptr2=strchr(str_ptr2+1,'t'); } while(str_ptr1!='\0') { printf("\n found 'a' at address %d and at position str[%d]",&str_ptr1,str_ptr1-str1); str_ptr1=strchr(str_ptr1+1,'a'); } return 0; }
run
|
edit
|
history
|
help
1
marquee text in C
Use of Arithmetic Operator
Paso parámetros a punteros
prestupn7 rok
Herout (67) - 2
char xor
Funciones: MandelBrot
UDP - Pytagorova veta
Vectores: Vector inicializado manualmente
Max number of a vector