Can a program run without main?
No Answer is Posted For this Question
Be the First to Post Answer
What is a c++ object?
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?
What is virtual function? Explain with an example
What is the use of namespace std in C++?
Which bitwise operator is used to check whether a particular bit is on or off?
Define friend function.
How can I learn c++ easily?
Explain the difference between struct and class in terms of access modifier.
What is general format for a prototype?
Write a recursive program to calculate factorial in c++.
What is an associative container in c++?
What is the difference between map and hashmap in c++?