Hello everyone. I was trying to display name and integer using printf() but the 'string' part doesnot appear. Please help me.
here is the code:
and the OUTPUT:Code:#include<stdio.h> int main() { char name[20]; char level; printf("Enter employee name: \n"); scanf("%s",&name); printf("Enter bonus level (0, 1 or 2): \n"); scanf("%i",&level); printf("%s and %i",name,level); return 0; }
Enter employee name:
jane
Enter bonus level (0, 1 or 2):
0
and 0
Please help.