TCS Company Programming Program

o/p of the program
#include
int main()
{
enum status { pass, fail, atkt};
enum status stud1, stud2, stud3;
stud1 = pass;
stud2 = atkt;
stud3 = fail;
printf("%d, %d, %dn", stud1, stud2, stud3);
return 0;
}

Read Solution (Total 11)

TCS Other Question

What is the output of following program?
#include
int main()
{
void *ptr1, *ptr2, x;
int y;
x = 100;
y = 200;

ptr1 = &x;
ptr2 = &y;

printf("%d", *ptr1);
pritnf("%d", *ptr2);

return 0;

}
Find the number of divisors of 1080 excluding the divisors which are perfect squares.
A. 28
B. 30
C. 29
D. 31