You are viewing a single comment's thread. Return to all comments →
why we have to use 3 different input here
scanf("%d", &a); scanf("%lf", &b); scanf("%*[\n] %[^\n]", ch); please help...
why not scanf("%d %lf %*[\n] %[^\n]", &a,&b,ch); or scanf("%d %lf %s", &a,&b,ch);
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
why we have to use 3 different input here
scanf("%d", &a); scanf("%lf", &b); scanf("%*[\n] %[^\n]", ch); please help...
why not scanf("%d %lf %*[\n] %[^\n]", &a,&b,ch); or scanf("%d %lf %s", &a,&b,ch);