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");}
}
Answer Posted / rohit kakade
this pgm has error because height is not defined in the main()
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
what is recursion in C
What are the standard predefined macros?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is the benefit of using const for declaring constants?
What is a spanning Tree?
What is #pragma statements?
What is #line?
What is the acronym for ansi?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is new line escape sequence?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Why does notstrcat(string, "!");Work?
Can you please explain the difference between syntax vs logical error?