|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
DETAILS
Question: How can we print sum of two number without using main function?
Answer: by using functions eg: main() { sum(); } sum() { int i,j; printf("enter i,j values:"); scanf("%d%d",&i,&j); printf("%d",i+j); }
|
|
|
Category |
Programming Languages Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 8325 users |
Added on |
6/9/2013 |
Views |
72584 |
Rate it! |
|
|
Question:
How can we print sum of two number without using main function?
Answer:
by using functions eg: main() { sum(); } sum() { int i,j; printf("enter i,j values:"); scanf("%d%d",&i,&j); printf("%d",i+j); } Source: CoolInterview.com
Answered by: v.v.k.m.lakshmi | Date: 6/14/2008
| Contact v.v.k.m.lakshmi
int begin() {int a,b,g; a=10;b=10; g=a+b; printf("%d",g); } Source: CoolInterview.com
Answered by: brahmareddy thumu | Date: 2/19/2010
| Contact brahmareddy thumu
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is a dangling pointer ?
|
View Answer
|
|
I am a new programmer in C & can't find <graphics.h> library. can anyone help me with this?
|
View Answer
|
|
How type of questions asked in campus interview? please tell me.
|
View Answer
|
|
What is the purpose of semicolon in c?
|
View Answer
|
|
What is the purpose of the semicolon(;) in languages?
|
View Answer
|
|
How to create Crystal Report in Visual Basic 6.0
|
View Answer
|
|
In VB which control does not have event?
|
View Answer
|
|
What are the differences between malloc() and calloc()?
What are macros? what are its advantages and disadvantages?
|
View Answer
|
|
What is Thread ? (VC++) What is the difference between Cmutex and Csemaphone?
|
View Answer
|
|
What is LPCTSTR? What does LP denote it?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Programming Languages Interview Questions & Answers - Exam Mode /
Learning Mode
|