Tata Consultancy Services Interview Question: Work on the DS very well as t... | Glassdoor.co.in

Interview Question

Computer Programmer Interview(Student Candidate)

Work on the DS very well as they may ask you to code the

  typical ds. How to take input and print the same with the length of the string using a print statement in C. traversing the tree using iterative method.
Answer

Interview Answer

1 Answer

0

#include
#include
void main()
{
int num, result;
clrscr() :
printf("Enter any number ") ;
scarf("%d", &num) ;
result=printf (" The given number is%d", num") ;
printf("The length of the given number is%d", result) ;
getch() ;
}

Anonymous on 11-Sep-2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.