Sign in
Please select an account to continue using cracku.in
↓ →
Consider the following C code.
#include <stdio.h>
#include <math.h>
void main()
{
Β Β Β Β Β double pi = 3.1415926535;
Β Β Β Β Β int a = 1;
Β Β Β Β Β int i;
Β for(i = 0; i <3; i++)
Β Β Β Β Β if(a = cos(pi * i/2) )
Β Β Β Β Β Β Β Β Β Β Β Β Β printf("%d ",1);
Β Β Β Β Β else printf("%d ", 0);
}
What would the program print?
Create a FREE account and get:
Educational materials for CAT preparation