ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
WAP to accept rollno,course name & marks of a student & 
display grade if total marks is above 200?
 Question Submitted By :: Don
I also faced this Question!!     Rank Answer Posted By  
 
  Re: WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
Answer
# 1
Frnds plss tell me the answer
 
Is This Answer Correct ?    2 Yes 1 No
Don
 
  Re: WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
Answer
# 2
#include<stdio.h>
#include<conio.h>
struct mix 
{
int rollno,m1,m2,m3,total;
char cn;
};
void main()
{
   mix s1;
printf("Enter roll no:");
scanf("%d",&s1.rollno);
printf("Enter course name:");
scanf("%s",s1.cn);
printf("Enter marks of 3 subjects out of 150:");
scanf("%d%d%d",&s1.m1,&s1.m2,&s1.m3);
s1.total=s1.m1+s1.m2+s1.m3;
if(s1.total>200)
{
printf("A grade");
}
getch();
}
 
Is This Answer Correct ?    3 Yes 2 No
Rohit
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
What should not contain a header file?  2
size maximum allocated by calloc() DELL1
int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ? Mascot9
How to receive strings with spaces in scanf()  4
the operator for exponencation is a.** b.^ c.% d.not available TCS4
wat is the difference between a definition and declaration? float y;---it looks like a declaration..but it s a definition.how?someone explain  3
how to return 1000 variables from functio9n in c?plz give me code also  5
main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output?? Ramco13
difference of two no's with out using - operator  6
to find the program of matrix multiplication using arrays  2
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE; Accenture4
what is array? HCL22
N O S I E R + A S T R A L ---------------- 7 2 5 6 1 3 Honeywell2
What is structure padding & expalain wid example what is bit wise structure?  1
when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none HCL4
What is an anonymous union and where to apply that ? HP3
what is the difference between #include<stdio.h> and #include "stdio.h" ?  2
Write a C program to print 1 2 3 ... 100 without using loops?  5
what is a headerfile?and what will be a program without it explain nan example? Assurgent5
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access? Excel1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com