-
-
Save parzibyte/c20128c4ebdaa591ab79c210ad969611 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() | |
{ | |
// https://parzibyte.me/blog | |
char cadena[] = "parzibyte.me"; | |
int indice; | |
for (indice = 0; indice < strlen(cadena); indice++) | |
{ | |
char actual = cadena[indice]; | |
printf("Tenemos el caracter '%c'\n", actual); | |
} | |
indice = 0; | |
while (cadena[indice] != '\0') | |
{ | |
char actual = cadena[indice]; | |
printf("Tenemos el caracter '%c'\n", actual); | |
indice++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment