what is op?
for(c=0;c=1000;c++)
printf("%c",c);
Answer Posted / ksprasad
It will go for infinite loop.
But in each iteration, c is assigned with the value 1000.
So each time it will print a character of ascii=1000.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are called c variables?
Can you apply link and association interchangeably?
Explain how can type-insensitive macros be created?
What are logical errors and how does it differ from syntax errors?
What is the use of header?
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 concatenation operator?
Is stack a keyword in c?
What is the best way to comment out a section of code that contains comments?
Explain the use of 'auto' keyword in c programming?
What is the difference between abs() and fabs() functions?
What is use of bit field?
Why ca not I do something like this?
What is volatile c?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.