A mXn matrix is given and rows and column are sorted as
shown below.Write a function that search a desired entered
no in the matrix .with minimum complexity
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
No Answer is Posted For this Question
Be the First to Post Answer
What is #include iostream?
What is endl?
int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?
How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)
How does throwing and catching exceptions differ from using setjmp and longjmp?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
Where do I find the current c or c++ standard documents?
What is the use of namespace std in C++?
How do you know that your class needs a virtual destructor?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
Difference between Operator overloading and Functional overloading?
What are smart pointer? Whats its use?