How we will connect multiple client ? (without using
fork,thread)
Answers were Sorted based on User's Feedback
Answer / amaresh_83
hi
plz send me (avirus_944@yahoo.co.in)
Thanks
Amaresh...
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / jay
Using select() in socket, we can connect multiple clients.
Please go through the uses of select().
Is This Answer Correct ? | 1 Yes | 1 No |
func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); }
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }
How we print the table of 2 using for loop in c programing?
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.
Write a C function to search a number in the given list of numbers. donot use printf and scanf
main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
can u give me the c codings for converting a string into the hexa decimal form......
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
how can u draw a rectangle in C
53 Answers Accenture, CO, Codeblocks, Cognizant, HCL, Oracle, Punjab National Bank, SAP Labs, TCS, University, Wipro,