Favorite programming language

Status
Not open for further replies.
Oh! Hmm, I suppose! I've never even thought of trying to learn C - I may after the other ones I've planned. :D

What is your Signiture? I can't quite work out what it would do as a program?
 
#include <stdio.h>

int main()
{
char a[30];
char b[3];
char c[50];

printf("Name: ");
gets(a);
printf("Age: ");
gets(b);
printf("Website: ");
gets(c);

printf("\t Status for %d\n", a);
printf("Name: %d\n", a);
printf("Age: %d\n", b);
printf("Website: %d\n", c);
}

outcome:


Name: whateveryouput
Age: whateveryouput
Website: whateveryouput.com.net.org.etc

Status for whateveryouput
Name: whateveryouput
Age: whateveryouput
Website: whateveryouput.com.net.org.etc
 
Status
Not open for further replies.
Back
Top Bottom