Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- typedef struct{
- int hola;
- char *text;
- char *textonemoreone;
- }test;
- void main(){
- test testinfunction;
- testinfunction.hola = 1234;
- printf("%d\n",testinfunction.hola);
- testinfunction.text = "hola mundo XD";
- printf("%s\n",testinfunction.text);
- testinfunction.textonemoreone = "Texto entero";
- int num;
- for(num = 0;*testinfunction.textonemoreone != NULL;num++){
- printf("%c",*testinfunction.textonemoreone);
- testinfunction.textonemoreone++;
- }
- }
- // My second script in C, the first have very much bugs XDDDDDDD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement