write c program without semicolon
Answer Posted / sumit
int main()
{
if(printf("hello"))
{
}
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
In which language linux is written?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What's the right way to use errno?
How macro execution is faster than function ?
Explain how can I read and write comma-delimited text?
Is printf a keyword?
What does nil mean in c?
What is the difference between #include and #include 'file' ?
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
Write a program to show the change in position of a cursor using c
Write programs for String Reversal & Palindrome check
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Where are some collections of useful code fragments and examples?
How is = symbol different from == symbol in c programming?