What should be the output
int main()
{
int a=10/3;
printf ("%d",a);
return 0;
}
Answers
Answered by
4
Answer:
3
Explanation:
In c language %d denote to integer number .
So answer is 10/3=3
Answered by
0
Output : 3
Explanation:
- The above algorithm is written in C-language.
- The variable "a" declared in the algorithm is of Integer data type.
- The size of integer data type in C-language is either 2-bytes or 4-bytes (depending on the compiler).
- Since, an integer cannot hold values in decimal it, therefore, stores only the Integer part.
- When 10/3 and stored in integer "a" then a = 3.
- Therefore, when we print integer using "%d", the output is 3.
Similar questions
Computer Science,
5 months ago
Math,
5 months ago
Political Science,
5 months ago
Math,
11 months ago
English,
11 months ago
Math,
1 year ago
History,
1 year ago