Select the correct option to test your answer:
More Computer Questions
What will be the output of the following C code? #include <stdio.h> typedef struct p *q; struct p { int x; char y; q ptr; }; int main() { struct p p = {1, 2, &p}; printf("%d\n", p.ptr->x); return 0; }
Choose the statements which indicate the differences between the thread based multitasking and process based multitasking.
What is the data type of the following variable declaration: var name = "John";
What will be the output of the following C++ code? #include<iostream> using namespace std; class Add { int x; public: Add(int x){ this->x = x; } int operator()(int a){ return x+a; } }; int main() { Add add_5(5); int a = 5; cout<<add_5(a); return 0; }
The initial value of the semaphore that allows only one of the many processes to enter their critical sections, is