All pastes #385580 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2007-03-07 22:42 UTC
rendered paste body
#include <stdio.h>void main(){   char uname;   char *name = "Nicky";   char *nick = "DosKey";   int age;   printf("%s is also known as %s in IRC\n", name,nick);   printf("How old are you?\n");   scanf("%d", &age);   if (age >= 50)   {       printf("You are so old\n");   }   else   {       printf("You are quite young\n");   }   printf("So what is your name?\n");   scanf("%s", &uname);   printf("So your name is %s then.", uname);}