/* readIntString.c - Example of how we can read and print an integer 
	and a string.
*/

#include <stdio.h>
#include <string.h>


int main () {
        int x;
        char name[12]; /* enough space to store a name with 11 caracters*/
        printf("Enter an integer: ");
        scanf("%d", &x);
        printf("You have entered: %d\n", x);
        printf("Enter your name: ");
        scanf("%11s", name); /* 11 is there in %11s to make sure that we 
				don't exceed available space in name */
        printf("Your name is %s\n", name);

        return 0;
}

