in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c
What is the output of the following C++ code snippet?
#include <iostream>
int main() {
int arr[] = {1, 2, 3, 4, 5};
int *p = arr + 3;
std::cout << *p;
}
26 - 4
In C++, what is the effect of the following code snippet on memory?
#include <iostream>
int main() {
int *p = new int(9999);
delete p;
int *q = new int(57);
*q = 10000;
std::cout << "p = " << p << std::endl;
std::cout << "q = " << q << std::endl;
std::cout << *p << std::endl;
std::cout << *q << std::endl;
delete q;
return 0;
}
11 - 5
In C++, which of the following correctly deallocates memory allocated for an integer pointer p?
18 - 0
Which OOP concept allows the same operation to be carried out differently depending on the object?
48 - 0
Hello, welcome to my Channel AnoopTube...!
This is a Malayalam Tech-Hub...
Hi, I am ANOOP and I do programming tutorials in Malayalam. I have a lot of tutorials on Python and C programming, C++, Java ..etc. These tutorials are for absolute beginners and will be easily understood by everyone.
I hope you can find my channel to learn the basics of programming concepts.
Happy Coding :)
Code with Coffee :)
Notes and Blogs
anooptube.in/blog/
Buy me a coffee
www.buymeacoffee.com/anoopp