ok but can you tell apporach to solve this kind of question
Type: Posts; User: alokdotnet
ok but can you tell apporach to solve this kind of question
main()
{
char huge * near * far *prt1;
char near * far * huge *ptr2;
char far * huge * near *ptr3;
printf("%d %d %d", sizeof(ptr1),sizeof(*ptr2),sizeof(**ptr3));
}
second prg
so you mean it will copy the binary file perfectly...
plz reply
Hi friends,
i want to know that which version of Qt ( a trolltech product) is competiable with red hat linux 9.
thankx
Hi all friendz,
this question is in ref of 1.3 program of maurice j. bach,
it is a simple copy program, which uses the read and write system call, i just want to know that will this program copy...
hi friends,
in this program, i m creating a pipe and creating two child process of main which will write and read in this pipe.
no error no warning, but when i m running the a.out, screen is...
char strnum[20] ;
int accno;
......
fgets(strnum,sizeof strnum,stdin);
sscanf(strnum,"%d",&accno) ;
......
by this my problem is solved....
good way to come out such problems..
But friend problem is here, to convert integer to string, and atoi changes ascii to integer...
another function is there itoa(), but his is not standard ANSI function, and not supported by GCC.
i...
Dear Quzah, sscanf has following protype
int sscanf(const char *str, const char *format, ...);
if i m using it then i have to pass char * as first argument, but here i want to take input as...
dear friends,
past 5 hours i working out this problem, here a confliction between scanf and fgets...
may be i m using wrong term conflict, but i m going to explain you the exact problem..
just...
thankx friends by your help i solved the problem.
Hi feiends,
a small task but seems very hard,
reading a array which contains amount of soem bank account,
task it to read from char array, change to integer , add new deposit to it
and save...
hi everyhting was working fine even with cat dbase.dat showing the elements of file,
but as i open the file in vi editor i got this
1 akki
2 ^@^@^@^@^@23424
3...
thnakx a lot i got where is the problem as quzah told that it point to nothing, i did that and malloc the RECORD now its working fine.
thankx alot.
this open is unix system call
hi all friends,
i m trying to write and dbase app like a banking system.
i have crteted structure RECOERD, and writing this structure to file , it is writing properly no error but in dbase.dat...
hi friends,
its all code, but not getting why it is telling wrong descriptor.
1 //redirecting output of ls -l command to wc, with help of tmp file
2
3 #include<stdio.h>
...