how to write a program which adds two numbers without using
semicolon in c
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / g.rajitha
#include<iostream.h>
void main()
{
int a,b;
if(cout<<"Please enter two numbers : ")
if(cin>>a>>b)
if(cout<<"Sum = "<<(a+b))
}
| Is This Answer Correct ? | 5 Yes | 16 No |
What is wrong in this statement? scanf(“%d”,whatnumber);
What is volatile variable how do you declare it?
What is restrict keyword in c?
What do you mean by team??
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
How can I read a directory in a C program?
2 Answers Bright Outdoor, Wipro,
What are register variables? What are the advantage of using register variables?
what is the full form of c language
How do we make a global variable accessible across files? Explain the extern keyword?
how to copy a string without using c function
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is the difference between malloc calloc and realloc in c?