What does it mean to declare a member function as static?
No Answer is Posted For this Question
Be the First to Post Answer
What is the need of a destructor? Explain with the help of an example.
What is vector string in c++?
Why should we use null or zero in a program?
Read the following program carefully and write the output of the program. Explain each line of code according to given numbering. #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> 1……………… int main (void) { pid_t pid; 2………………………… pid = fork(); 3…………………………. if (pid > 0) { int i; 4………………………… for (i = 0; i < 5; i++) { 5………………… …………… printf(" I AM VU : %d\n", i); 6………………… …………… sleep(1); } exit(0); } 7………………… ……… else if (pid == 0) { int j; for (j = 0; j < 5; j++) { 8……………………………… printf(" I have no child: %d\n", j); sleep(1); } _exit(0); } else { 9………………………………fprintf(stderr, "can't fork, error %d\n", errno); 10……………… … ………… exit (EXIT_FAILURE); } }
How many ways are there to initialize an int with a constant?
Explain working of printf?
Can user-defined object be declared as static data member of another class?
What is an orthogonal base class in c++?
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.
What is the difference between static global and global ?
Describe private, protected and public – the differences and give examples.
Why do we use vector in c++?