how the size of an integer is decided?
- is it based on processor or compiler or OS?
Answer Posted / hrishikesh
ans is compiler and not os or machine dependent or
processor b'coz u can port difft os on same processor .
when in tc it is 2
while in gcc it is 4 byte for int .
so her neither u r processor changes nor kernel as all are
originated from
UNIX.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the difference between far and near ?
If you know then define #pragma?
Process by which one bit pattern in to another by bit wise operation is?
How is a null pointer different from a dangling pointer?
Can we replace the struct function in tree syntax with a union?
explain what is an endless loop?
What is typeof in c?
What are the main characteristics of c language describe the structure of ac program?
Is there a way to jump out of a function or functions?
Why & is used in scanf in c?
How to declare pointer variables?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is a MAC Address?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What are the basic data types associated with c?