if we take a number as a char then can we manipulate(add,
subtract) on this number
Answer Posted / 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 |
Post New Answer View All Answers
Difference between strcpy() and memcpy() function?
What is the difference between malloc() and calloc()?
Explain do array subscripts always start with zero?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is masking?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
diff between exptected result and requirement?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
List some of the static data structures in C?
What is main () in c language?
Why do we use c for the speed of light?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
When can you use a pointer with a function?
How to establish connection with oracle database software from c language?