GATE 2021 CS Question Paper Complete Solution - PYQ 2021
Q 37. Consider the following ANSI C program.
#include
int main()
{
int i, j, count;
count=0;
i=0;
for (j=-3; j lt=3; j++)
{
if (( j gt= 0) && (i++))
count = count + j;
}
count = count +i;
printf(“%d”, count);
return 0;
}
Which one of the following options is correct?
---------------------------------------------------------------------------
GATE 2021 All links:https://gate.iitb.ac.in/G21/index.php
GATE 2021: Questions & Keys: https://gate.iitb.ac.in/G21/21_Final_...
CS Set 1:
QP: https://drive.google.com/file/d/1l0Wd...
Key: https://drive.google.com/file/d/1Yue4...
CS Set2:
QP: https://drive.google.com/file/d/1msqM...
Key: https://drive.google.com/file/d/19-3n...
------------------------------------------------------------------------
Gate Helpline helps you in gate notifications, PSU, previous year papers, gate admit card, gate cutoff marks, gate results, scorecard, gate helpline number etc Gate Helpline provides a unique feature of Question Answer Discussion.
--------------------------------------------------------------------------
Follow Us on Youtube Channel:
https://www.youtube.com/c/Gatehelplin...
Gate Helpline:
http://gatehelpline.com/
Follow Us on Facebook:
/ gatehelplinedotcom
Follow Us on Twitter:
/ gatehelpline