Pipes support half duplex communication. But if we want full-duplex communications we should use two pipes between two processes. Is such situation can leads to deadlock? Write two scenarios that could leads to deadlock in such situations?
1 4849main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9604main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 11313#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4637Post New Vector India Interview Questions
Does hadoop install spark?
Explain the term Cloud computing? What are its types?
What is a goal in maven terminology?
Which server tasks are used for lotus notes web application?
what is meant by s0c-07 system abend codes?
What is the process to generate random numbers in c programming language?
How do I get 64 bit java?
Differentiate between a pointer and a reference with respect to c++.
How do you balance innovation with practical business constraints?
Which method will arrange the element of an array in alphabetical order?
describe middleware applications that ease the connection of databases to web?
What are the steps of production execution process?
What happens if an exception is throws from an object's destructor?
5.Call by value and Call by reference with program?
How do I create a drop down menu in wordpress?