how the size of an integer is decided?
- is it based on processor or compiler or OS?
Answer Posted / rani
I think its compiler specific bcoz a char holds 1byte in c
where as it holds 2 bytes in java.
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
Explain what are the __date__ and __time__ preprocessor commands?
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 is the right type to use for boolean values in c?
How can you find the exact size of a data type in c?
find the sum of two matrices and WAP for it.
How can type-insensitive macros be created?
Explain how are portions of a program disabled in demo versions?
Can you write a programmer for FACTORIAL using recursion?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What is a constant?
What is character set?
Are global variables static in c?
What do you mean by recursion in c?
What is a pointer value and address in c?
Explain what is the benefit of using an enum rather than a #define constant?