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 |
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }
main( ) { char *q; int j; for (j=0; j<3; j++) scanf(“%s” ,(q+j)); for (j=0; j<3; j++) printf(“%c” ,*(q+j)); for (j=0; j<3; j++) printf(“%s” ,(q+j)); }
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
Write a program to receive an integer and find its octal equivalent?
What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
why the range of an unsigned integer is double almost than the signed integer.
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }