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
Can you define lean manufacturing?
Explain about Automatic resource management?
What do you know about the manufacturing sector?
How can I pass the page as the parameter to the activity using java, javascript?
Can we pass values to macro ?
What is tsl?
What is switch case in c++ syntax?
In how many types you may categorize the bank in india?
Do you know what kind of daily work do soil scientists do? : soil science
Mention the materials used for making care labels.
Is sql open source?
What is spark sqlcontext?
How does selling happen in retail markets?
Tell something about open market operations?
What are filters explain sort with all the options available?