TCS Company Programming Functions

The value obtained in the function is given back to the main by using ________ keyword?
A)Return B)Static C)New D)Volatile

Read Solution (Total 9)

TCS Other Question

Predict the output of this code snippet?

#include
int main()
{
int i = 3;
switch (i)
{
case 0+1: printf(“Cyber”);
break;
case 1+2: printf(“Tecz”);
break;
default: printf(“CyberTecz”);
}
return 0;
}

A)Cyber B)Tecz C)CyberTecz D)Compiler error
George can do some work in 8 hours, Paulcan do the same work in 10 hours while Hiari can do the same work in 12 hours. All the three of them start working at 8 a.m. while George stops works at 10 a.m and remaining two complete the work. Approximately at what time will the work be finished?
A)12 noon B)1 pm C)12:30 pm D)11:30 am E)None of these