#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
what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
application attempts to perform an operation?
Explain what is operator promotion?
What are the disadvantages of a shell structure?
int x=5; printf("%d%d%d",x,x<<2,x>>2);
palindrome for strings and numbers----Can anybody do the prog?
6 Answers CTS, TCS, Vipro Lifescience Pvt,
What are operators in c?
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
provide an example of the Group by clause, when would you use this clause
What is output redirection?