e55db081d05f58a

test_strings.c

Feb 26th, 2021
1,236
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(){
  4.     char str_visible[]="MI CADENA SE MIRA";
  5.     char str_visible1[100]={'S','E','M','I','R','A','\x00'};
  6.    
  7.     int n=101;
  8.     int i=0;
  9.     char *invisible=(char*)malloc(sizeof(char)*n);
  10.     while(i<n){
  11.         int j=0;
  12.         while(j<=255){
  13.             if( (j=='e'&&i==0) || (j=='s'&&i==1) || (j=='s'&&i==2) || (j=='e'&&i==3) || (j=='c' && i==4) || (j=='r' && i==5) || (j=='e' && i==6) || (j=='t' && i==7) || (j=='a' && i==8) ){
  14.                 *(invisible+i)=j;
  15.             }
  16.             j++;
  17.         }
  18.         i++;
  19.     }
  20.  
  21.     printf("%s\n",str_visible);
  22.     printf("%s\n",str_visible1);
  23.     printf("%s\n",invisible);
  24.     return 0x00;
  25. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×