#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=0,b=0,c=0;
printf("enter value of a,b");
scanf("
%d %d",a,b);
c=a+b;
printf("sum is %d",c);
getch();
}
Answers were Sorted based on User's Feedback
Which of the following about the C comments is incorrect ? a.commentscan go over multiple lines b.comments can start any where in the line c.a line can contain comments with out any language statements d.comments can occur within comments
Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?
What do you mean by a local block?
inline function is there in c language?
Can a pointer point to null?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain
Which type of language is c?
Explain how can a program be made to print the name of a source file where an error occurs?
Write a program to find the biggest number of three numbers in c?
main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }
11 Answers HCL, Vector, Vector India, Vector Solutions, Wipro,
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
2 Answers Aricent, Manipal University,