if we take a number as a char then can we manipulate(add,
subtract) on this number
Answers were Sorted based on User's Feedback
Answer / aravind
yes.For example
#include<stdio.h>
int main()
{
int x,y;
x='A'+1;
y='B'-1;
printf("%d,%d\n",x,y);
}
It will add the Asci value of A and subtracts B, Than 62 or B will be ans for x and A or 61 will be ans for y.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / deepak garg
#include<stdio.h>
int main()
{
int x,y;
x=1+'a';
y='b'-1;
printf("%d,%d\n",x,y);
}
Is This Answer Correct ? | 1 Yes | 0 No |
write a c program to add two integer numbers without using arithmetic operator +
which operator is known as dummy operator in c?
What does extern mean in a function declaration?
what is the format specifier for printing a pointer value?
What is the value of h?
What is indirection?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is a stream in c programming?
IS Doon college of Engn.. has good faculty
Without Computer networks, Computers will be half the use. Comment.
Write a program to implement queue.
Distinguish between actual and formal arguments.