What data types are acceptable for x in the expression scanf(\"%d\", &x) A. int
ID: 653560 • Letter: W
Question
What data types are acceptable for x in the expression scanf("%d", &x)
A. int only
B. int and double only
C. car, short, and int only
D. char, short, int, and long only
E. any of the above
For the declaration char ch; expressions that will input a character from the user into varible ch, skopping all leading witespace are:
A. scanf("%c", &ch) and cin>>ch
B. ch=getchar() and cin.get()
C. scanf(" %c", &ch) and cin>>ch
D. scanf(" %c", &ch) and cin>>ch
E. scanf("%c", ch) and cin>>(char)&ch
Explanation / Answer
What data types are acceptable for x in the expression scanf("%d", &x)
A. int only
B. int and double only
C. car, short, and int only
D. char, short, int, and long only
E. any of the above
For the declaration char ch; expressions that will input a character from the user into varible ch, skopping all leading witespace are:
A. scanf("%c", &ch) and cin>>ch
B. ch=getchar() and cin.get()
C. scanf(" %c", &ch) and cin>>ch
D. scanf(" %c", &ch) and cin>>ch
E. scanf("%c", ch) and cin>>(char)&ch
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.