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 bit rate & baud rate? plz give wave forms
Why is c called c?
In which header file is the null macro defined?
What is sizeof array?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
write a program fibonacci series and palindrome program in c
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
How do you list a file’s date and time?
What is a program flowchart and how does it help in writing a program?
Explain what is operator promotion?
What is the sizeof () a pointer?
Under what circumstances does a name clash occur?
Why void is used in c?
What is c language used for?
Is the exit() function same as the return statement? Explain.