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 |
Explain what is the best way to comment out a section of code that contains comments?
a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All
3 Answers Accenture, Digg.com,
what is the coding of display the factorial of a number using array and function?
what is the role you expect in software industry?
Can true be a variable name in c?
What is storage class?
What are the average number of comparisons required to sort 3 elements?
how to do in place reversal of a linked list(singly or doubly)?
Is c is a high level language?
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?
what are the interview question's in the language c
How is a structure member accessed?