nid help...
i simply input 1234Code:#include<stdio.h> main() { chat num[4]; int a,b,c,d; printf("input num"); scanf("%s",num); a=num[0]; b=num[1]; c=num[2]; d=num[3]; printf("a=%d b=%d c=%d d=%d",a,b,c,d); getch(); }
but i dont get the values of:
1 for a
2 for b
3 for c
4 for d
whats wrong w/ the program..
nid ur advice...