Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is queue in c?

1086


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

1116


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

1149


What is struct node in c?

1058


If you know then define #pragma?

1090


What are Macros? What are its advantages and disadvantages?

1141


Where are c variables stored in memory?

1054


Is int a keyword in c?

949


Does c have class?

1084


Why is c faster?

1079


Is there a built-in function in C that can be used for sorting data?

1228


Why can't I perform arithmetic on a void* pointer?

1086


What is the scope of an external variable in c?

1029


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3070


What is static and volatile in c?

1209