If you want to share several functions or variables in several files maitaining the consistency how would you share it?
No Answer is Posted For this Question
Be the First to Post Answer
Why are pointers used?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What is the difference between delegation and implemented-in-terms-of?
Write a program to find the Fibonacci series recursively.
Which software is best for coding?
is throwing exception from a constructor not a good practice ?
Write about an iterator class?
When is a template a better solution than a base class?
Difference between a homogeneous and a heterogeneous container
How to avoid a class from instantiation?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
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?