How the processor registers can be used in C ?
Answer Posted / anandam niranjan
cpu registers can be accessed faster than varibles in memory.
so we use processor registers to store frequently used variables
and this can be done by using the keyword "register" before
the declaration of variable as its storage class
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How many levels deep can include files be nested?
How does normalization of huge pointer works?
What is the advantage of a random access file?
What do header files do?
Explain the difference between malloc() and calloc() in c?
What is volatile variable in c with example?
will u please send me the placement papers to my mail???????????????????
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
What are the __date__ and __time__ preprocessor commands?
What is boolean in c?
What is the difference between malloc() and calloc()?
how could explain about job profile
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }