Knowee
Questions
Features
Study Tools

### To scan `a` and `b` given below, which of the following `scanf()` statement will you use? ```c #include<stdio.h> float a; double b; ```

Question

### To scan `a` and `b` given below, which of the following `scanf()` statement will you use? ```c #include<stdio.h> float a; double b; ```
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

To scan the variables 'a' and 'b' in C, you would use the following scanf() statement:

scanf("%f %lf", &a, &b);

Here is the step by step explanation:

  1. %f is the format specifier for a float in C. This is used to scan the variable 'a'.

  2. %lf is the format specifier for a double in Knowee AI is a powerful AI-powered study tool designed to help you to solve study problem.

Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  

This problem has been solved

Similar Questions

0/0

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.