Advertisement
Guest User

Second Script in C

a guest
Aug 14th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. typedef struct{
  4.     int hola;
  5.     char *text;
  6.     char *textonemoreone;
  7. }test;
  8.  
  9. void main(){
  10.     test testinfunction;
  11.     testinfunction.hola = 1234;
  12.     printf("%d\n",testinfunction.hola);
  13.     testinfunction.text = "hola mundo XD";
  14.     printf("%s\n",testinfunction.text);
  15.     testinfunction.textonemoreone = "Texto entero";
  16.     int num;
  17.     for(num = 0;*testinfunction.textonemoreone != NULL;num++){
  18.         printf("%c",*testinfunction.textonemoreone);
  19.         testinfunction.textonemoreone++;
  20.     }
  21. }
  22. // My second script in C, the first have very much bugs XDDDDDDD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement