what is volatile in c language?
Answer Posted / deep
consider this outside main()
int i=10;
int j = i + 10;
here smart compilers always replace the i in the second
statement with 10, when we use volatile keyword this will be
avoided and always there is a check of the i variable ,
before initialising it..
So the optimisation here is avoided
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
Explain setjmp()?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Write a program to find factorial of a number using recursive function.
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Write a program with dynamically allocation of variable.
What is the advantage of an array over individual variables?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Explain is it better to bitshift a value than to multiply by 2?
what is the format specifier for printing a pointer value?
Is malloc memset faster than calloc?
Why & is used in scanf in c?
What is file in c preprocessor?
How can I get random integers in a certain range?
Write a program to print fibonacci series without using recursion?
What is a class c rental property?