What will be the output of the following code?
int main()
{
int i=25;
int k=i%4;
print("%d\n",k);
} Qus
निम्नलिखित कोड का आउटपुट क्या होगा?
int main()
{
int i=25;
int k=i%4;
print("%d\n",k);
}
A. 1
B. 2
C. 3
D. 4
Solution
A. 1Explanation
% operator is used to find the remainder and when we divide 25 with 4 then it gives the remainder 1