TCS Company Programming Output

When we execute the given code after giving input, which output is displayed?

int main()
{
int a, b, c;
printf("Enter value of a & bn");
c = scanf("%d",&a,&b);
printf("%d",c);
getch():
return 0;
}

Read Solution (Total 8)

TCS Other Question

Which of the following function is used to accept string with white spaces?

A. getStrings();
B. getWhiteSpaceString();
C. scanf();
D. gets();
Find Prefix and Postfix for the below Infix problem statement:

Infix Expression: 11 + 20/5* (20 - 15)^6^5

A. Prefix Expression: 11 20 15 20 5 - ^^*6 5/+
Postfix Expression: +20 / 11 * 5 - 20 ^^15 6 5
B. Prefix Expression: 11 20 5 20 15 - 6 5^^*/+
Postfix Expression: +11 / 20 * 5^^ - 20 15 6 5
C. Prefix Expression: 11 20 5 20 15 - ^^*/+6 5
Postfix Expression: +11 /^^-20 * 5 20 15 6 5
D. Prefix Expression: +11/20 * 5^^ - 20 15 6 5
Postfix Expression: 11 20 5 20 15 - 6 5^^*/+