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 4122main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 8811main() { 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 9683#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 3761Post New Vector India Interview Questions
Do web developers use html?
Will you be happy to move to a foreign country in next 3 months?
How to extract bacteria from HUT TEST ?
I am attending the interview in ICICI BANK i need the interview tips and questions
Why is it prefer to initiate circuit breaker failure by "86" lockout relay not by "94" tripping relay ?!
Describe the formation of igneous rocks?
Can you be deported if you are stateless?
What are the different control break statements available inside a loop?
Explain briefly what is meant by activities?
how to control PQI (Project Quality Index)
Can a material be used after flagging it for deletion?
can inline function declare in private part of class?
What are the different functions of each of the layer in TCP/IP model? What are the protocols associated with each layer?
Why do we use copper cable for HT Supply and why not Aluminium?
in your company you want lead the organasition.