Think you're a C expert? Prove it with this MCQ!

preview_player
Показать описание
#shorts #clanguage #cprogramming #programming #coding

The correct answer is (a) 1.
Рекомендации по теме
Комментарии
Автор

The answer is correctly A, a computer can simply count how many times 3 fits in 5. Wich is only 1 time. Everything that comes after the, it wil just be thrown away. This is also because we initialize x as a integer wich is a binary number 16 or 32 bit. Tot do this correctly we should put float instead of int(and u should change %d in %f. Then the machine would give is an output 1, 667 depending on hom many numbers u want behind the comma

thomasfokkema
Автор

1 since it's %d which is used for integers also a and b are declared as integers and haven't been type casted anywhere

rahuljoshi
Автор

1 because the format spacefier is int %d

AbhayTiwari-bcsm