printf("%d",(printf("Hello")); What it returns?
Answer Posted / dinesh gupta
error
bcos one bracket is missing
if make correction
then out put is ........ hello5
reason..inner statement print hello and as wellas returns the lenth of the string to outer print statement,which give 5
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How many bytes is a struct in c?
Where static variables are stored in memory in c?
What are the different data types in C?
What is c language in simple words?
Explain what is the most efficient way to store flag values?
What extern c means?
What is the purpose of type declarations?
Explain can static variables be declared in a header file?
Explain what is the best way to comment out a section of code that contains comments?
What is the difference between far and near in c?
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 function of this pointer?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
What are different types of pointers?
What is the use of function overloading in C?