}
" class="related-a">
4.
What will be the output of the following code?
#include <stdio.h>
void main()
{
int p=5, a, j, k, t, b;
int num[]={1,2,3,4,6};
b = num[0];
for (a = 1; a < p – 1; a++)
b = b ^ num[a];
for (a = 2, k = 1; a <= p; a++)
k = k ^ a;
k = k ^ b;
printf("%d", k+(k*18)+3);
}