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


Please Help Members By Posting Answers For Below Questions

What are called c variables?

569


Can you apply link and association interchangeably?

663


Explain how can type-insensitive macros be created?

564


What are logical errors and how does it differ from syntax errors?

647


What is the use of header?

612






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;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2704


What is the concatenation operator?

601


Is stack a keyword in c?

628


What is the best way to comment out a section of code that contains comments?

772


Explain the use of 'auto' keyword in c programming?

670


What is the difference between abs() and fabs() functions?

599


What is use of bit field?

762


Why ca not I do something like this?

583


What is volatile c?

513


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.

2642