what is the difference between const volatile int i
& volatile const int j;
Answers were Sorted based on User's Feedback
Answer / suman ranjan
There is no difference between the two. The important thing
to note is what does this mean anyways.
The const type qualifier declares an object to be
nonmodifiable. The volatile type qualifier declares an item
whose value can legitimately be changed by something beyond
the control of the program in which it appears, such as a
concurrently executing thread.
An item can be both const and volatile, in which case the
item could not be legitimately modified by its own program,
but could be modified by some asynchronous process.
Is This Answer Correct ? | 25 Yes | 1 No |
Answer / raj
There is no difference between const volatile int i and
volatile const int j
Is This Answer Correct ? | 13 Yes | 10 No |
write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1
What is the use of getch ()?
What is a example of a variable?
Given an array A[n+m] of n+m numbers, where A[1] ... A[n] is sorted and A[n+1] ... A[n+m] is sorted. Design a linear time algorithm to obtain A[1...n+m] sorted using only O(1) extra space. Time Complexity of your algorithm should be O(n) and Space Complexity O(1).
c pgm count no of lines , blanks, tabs in a para(File concept)
Can we access array using pointer in c language?
Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.
Write a factorial program using C.
What are the advantages of c preprocessor?
simple program for virtual function?
what is a static function
atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation