Computer Science, asked by Aartikmari5091, 8 months ago

What should be the output
int main()
{
int a=10/3;
printf ("%d",a);
return 0;
}

Answers

Answered by bipinbatham11
4

Answer:

3

Explanation:

In c language %d denote to integer number .

So answer is 10/3=3

Answered by sarahssynergy
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