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 4919main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9680main() { 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 11448#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Instituteā); #endif }
1 4721Post New Vector India Interview Questions
What are the types of schema in hana?
What is endpoint in wcf service?
What is variable and example?
State some key Points about Apache Avro?
What about IHS?
If percentage elongation of a material is more than 200%, it is classed as ?
What is angular and why angular?
What is size of character, integer, integer pointer, character pointer?
plz send me the aptitude test paper for hpcl.
Is c# code is unmanaged or managed code?
What is the difference between the mro & isc?
How to bring a tablespace online?
Advantages and disadvantages of using macro and inline functions?
What if memory allocation using new fails in C++ how to handle
Which language is used in power query?