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
What is the scope of static variable in c?
Why c is called free form language?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
How do you list a file’s date and time?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What are identifiers and keywords in c?
What is the function of multilevel pointer in c?
What is dynamic variable in c?
Explain high-order and low-order bytes.
What is the difference between call by value and call by reference in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What are header files in c programming?