Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none

7 Answers   HCL,


Program to find the absolute value of given integer using Conditional Operators

6 Answers   N Tech,


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

0 Answers  


What is variable in c with example?

1 Answers  


How do I use void main?

0 Answers  


What is Memory leakage ?

2 Answers   HCL,


plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


What is the function of multilevel pointer in c?

0 Answers  


C passes By value or By reference?

5 Answers   Geometric Software, Infosys,


write a progrmm in c language take user interface generate table using for loop?

0 Answers  


void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..

1 Answers  


Can we initialize extern variable in c?

0 Answers  


Categories