if we take a number as a char then can we manipulate(add,
subtract) on this number
Answer Posted / 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 |
Post New Answer View All Answers
What are the 4 data types?
How can I open files mentioned on the command line, and parse option flags?
List the different types of c tokens?
How can I read and write comma-delimited text?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is the difference between char array and char pointer?
which is an algorithm for sorting in a growing Lexicographic order
What would be an example of a structure analogous to structure c?
Why should I use standard library functions instead of writing my own?
what are the advantages of a macro over a function?
Write a code on reverse string and its complexity.
What are the benefits of organizational structure?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
program to convert a integer to string in c language'
Explain the use of 'auto' keyword