Write a program to enter the name and age.
If age>28 then find salary categories.
if age<28 then find that you are gaduate or not.



Write a program to enter the name and age. If age>28 then find salary categories. if age<28 ..

Answer / rohith

#include<stdio.h>
#include<conio.h>
void main()
{
int emp num,emp salary,age;
printf("enter the age");
scanf("%d",&age);
if(age>28)
{
printf("ener the emp num");
scanf("%d",emp name);
printf("enter the salary of the emp");
printf("%d", salary);

else
printf("he was not emp");
}
getch();
}

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Interview Questions

#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?

1 Answers   Wipro,


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

0 Answers   Wilco,


What is f'n in math?

0 Answers  


What is atoi and atof in c?

0 Answers  


Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

0 Answers  






What is meant by 'bit masking'?

0 Answers  


Write a program for Overriding.

0 Answers  


Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)

1 Answers   NetApp, PTU, Wipro,


Explain how does free() know explain how much memory to release?

0 Answers  


Which header file is used for clrscr?

0 Answers  


The statement, int(*x[]) () what does in indicate?

0 Answers  


What is the difference between File pointer and Internal Charecter Pointer?

2 Answers   TATA,


Categories