Can a variable be both const and volatile?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?

5 Answers  


question-how to run a c programme.

6 Answers  


while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.

1 Answers   TCS,


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

0 Answers   Amazon,


int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(“%d”,*(*(x+1)+3));

2 Answers   Wipro,






Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

0 Answers  


What are the advantages of union?

0 Answers  


How pointers are declared?

0 Answers  


What is mean by data types in c?

0 Answers  


Write a program to print the prime numbers from 1 to 100?

7 Answers  


how the compiler treats any volatile variable?Explain with example.

1 Answers   Tata Elxsi,


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

0 Answers  


Categories