Skip to content

Instantly share code, notes, and snippets.

@marcoscastro
Created November 22, 2017 14:31
Show Gist options
  • Save marcoscastro/7d91542ef507fab0eb972615448f4b4b to your computer and use it in GitHub Desktop.
Save marcoscastro/7d91542ef507fab0eb972615448f4b4b to your computer and use it in GitHub Desktop.
Programação em C - Strings
#include <stdio.h>
#include <string.h>
int main()
{
char nome[] = "linguagem c";
printf("%s\n" , nome);
printf("%d\n" , strlen(nome));
int i = 0;
while(nome[i] != '\0')
{
printf("%c", nome[i]);
i++;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment