how to write a program which adds two numbers without using
semicolon in c
Answer Posted / g.rajitha
void main()
{
int a,b;
if(printf("Enter two numbers"))
if(scanf("%d %d",&a,&b))
if(printf("%d",(a+b)))
}
| Is This Answer Correct ? | 1 Yes | 10 No |
Post New Answer View All Answers
How can I insert or delete a line (or record) in the middle of a file?
What is volatile variable in c with example?
Explain enumerated types.
write a program in c language to print your bio-data on the screen by using functions.
How many types of operators are there in c?
Where in memory are my variables stored?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is the difference between array and structure in c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Explain about the constants which help in debugging?
What header files do I need in order to define the standard library functions I use?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
in linking some of os executables are linking name some of them
What is a pointer in c?
What is && in c programming?