the output will be
#include<stdio.h>
int main ()
{
int i;
i = 9/2;
printf("%i",i);
return 0;
}
Answer Posted / manomit mitra
4
| Is This Answer Correct ? | 48 Yes | 8 No |
Post New Answer View All Answers
Write a program to check armstrong number 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
How can I swap two values without using a temporary?
Write a program to print ASCII code for a given digit.
What is a char in c?
Why c is faster than c++?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What is #include stdio h and #include conio h?
How can I remove the leading spaces from a string?
What are header files in c?
Why can’t we compare structures?
Can stdout be forced to print somewhere other than the screen?
What is the right way to use errno?
Explain how do you list a file’s date and time?
How can I sort a linked list?