main()
{
int age;
float ht;
printf("Enter height and age");
scanf("%d%d",&height,&age);
if((age<=20)&&(ht>=5))
{printf("She loves you");}
else
{printf("She loves you");}
}

Answers were Sorted based on User's Feedback



main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&a..

Answer / rohit kakade

this pgm has error because height is not defined in the main()

Is This Answer Correct ?    1 Yes 0 No

main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&a..

Answer / ajay

out is same ,so programmer write the other message in else part ,

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the difference between far and near ?

0 Answers  


Explain Function Pointer?

0 Answers   Wipro,


Is there any data type in c with variable size?

0 Answers  


How can I open a file so that other programs can update it at the same time?

0 Answers  


the data type used for unlimited value in c and how to do this program

1 Answers  






What is the heap?

0 Answers  


what is a c-language.what is do.

4 Answers   HCL,


Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā€œ%cā€, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.

1 Answers   BladeLogic, Infosys,


What does return 1 means in c?

0 Answers  


Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code

1 Answers  


what is self refrential structure

3 Answers   HCL,


Where are local variables stored in c?

0 Answers  


Categories