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 4381main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }
1 9184main() { 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 10417#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
1 4193Post New Vector India Interview Questions
What is bottom-up strategy?
Which is the payment term which actually gets defaulted when the transaction is posted for the customer (accounting view or the sales view)?
What are the types of service providers?
Can you pass an entire structure to functions?
How do I do an advanced search in windows 10?
What are the different types of control structures in programming?
What do you know about RBI? State its role economic development of the nation?
how many steps are there in etl process?
Explain what is queuemanager in ibm websphere mq?
Why development of rural area is important (when told the function of NABARD)?
Does kafka use hdfs?
Can you put two constructor with the same structure in a class?
How do I show posts on wordpress?
How long does a system restore take windows 10?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?