Ledger Nano X - The secure hardware wallet

Slide 12, Questão 1/a) e b)

Francelmo Apr 6th, 2020 (edited) 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. //Slide 12, Questão 1/a) e b).
  3. int main(){
  4.     char string[20];
  5.     int i, cont=0;
  6.     printf("Digite uma palavra:\n");
  7.     scanf("%s", string);
  8.     for(i=0; i<20; i++)
  9.         if(string[i]!='\0')
  10.             cont++;
  11.         else
  12.             break;
  13.     printf("O tamanho da string %s é: %d.\n", string, cont);
  14.     return 0;
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand