Report Bug

Qus

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. 1



Explanation

% operator is used to find the remainder and when we divide 25 with 4 then it gives the remainder 1

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad