Will rust take over c++?
No Answer is Posted For this Question
Be the First to Post Answer
Why should you learn c++?
What are static type checking?
What is purpose of abstract class?
What is virtual table?
Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables
What is the outcome of cout< a) 16 b) 17 c) 16.5
What is srand c++?
Explain deep copy and a shallow copy?
How the endl and setw manipulator works?
What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?
Write a recursive program to calculate factorial in c++.
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?