I read 2 questions :
1. In which order functions will be called : f1(2)*f2(4/3)+f3();
2. What it will print : int i; printf("%d %d", ++i,++i) ;
Answer to both was - It is Compiler D...
Hi,
I need to draw a simple line in pixel, but using standars headers (conio.h stdlib.h stdio.h etc) I cant use graphics.h coz is Borland.
I dont need something like:
for(int i=0;i<60...
Hi experts,
I modify the webserver sample in gSOAP sample directory and compile it with gcc compiler. It is successful. But now I use cross-compiler mipsel-uclibc-gcc to compile the webserver...
Hi ,
This question is from one of the popular books .
Given a sequential file containing 4,300,000,000 integers, how can you find one that appears at least once ?
a) How to solve i...
Hi,
I'm looking at the first formula on this page (where x and y are calculated given a lat/long):
http://mathworld.wolfram.com/MercatorProjection.html
I need to make that a C fun...
Hi,
I am trying to get some old C code to compile that has not been worked on since 1998/9.
Been advised that it needs to be a 16 bit compiler by Borland or Microsoft.
Tried
VC++ but g...
Is there any way to access a database using ADO and C (the programming language)?
What I need is a C library for ADO.
not C++ or C#
I have a lot of serverside applications writen in C...
Hi,
I really need help on improving how this program looks when it is run. The assignment was to create a wheel of fortune project. I'm still working on it, but the key parts of the code ar...
Hi,
I had a good working program, what it did was reading a message from a unix queue, forking a process, in the child process execute an ftp script, and in the parent process waiting for t...
hi,
i have pointers like this..is it same thing...
int **x, *p1;
if(*x==NULL) is similar to this - if(!*x)
if(p1==NULL) is similar to this - if(!p1)
thank you..
Hi,
I have some code in C, that connects to certain server using sockets. I want my code to be aware of Windows procedure for going to sleep. So that, it can detect when the PC is going to sl...
Hi experts,
Here is a question on how to combine keywords quickly.
Assume that following is a small part of a large static key file that contains nearly one million lines.
30234804 h...
My curiosity recently brought me to analyse what is the exact nature of the 2038 date problem.
Well as you all probably know, it comes from the limitation in the C standard library type 'ti...
Hi,
I'm new to C programming but feel i'm pretty good at perl so I feel like I really should be able to do this.
I've looked at C tutorials and in several text books but I can't find anythi...
Ok, so my problem is, I am trying to use sscanf to get a string and a floating point number, however for some reason it is missing the floating point number altogether. I used BOTH fputs AND p...
I am developing a small client-server database system using Linux and C with Pthreads on the server side. Each request from the client is processed by a short-lived handler thread that access...
Hi there. I would like to give the option to re-run the my program once it converts one of the choices. Currently I have the program exiting after finding one currency conversion by:
{
...
hi, i have written a program call generate_files and i wan to call it in another problem using exec. i noe the way to fork and call it but how do i noe the path of my generate_files program w...
Trying to call OCIStmtExecute with several statements e.g. create table ...; create sequence ...; ...
Getting invalid character on the semicolon.
Is there some parameter for OCIStmtExecute o...
I run the program the display the menu selection works but when I make my selection for each store the program does not show the Printf information that I placed in my program? Can you provid...
hi,
i have two strings like this:
str1="hello world";
str2="hello";
i was suprised when i saw if(str1<=str2) because this is not comparing strings but memory locations..
is my under...
hi,
i have a string like this:
char *original="helloworld":
char *str;
str=&original[0];
while(*str!='0')
{
printf("%c", *str);
str++;
}
it prints helloworld
w...
hi,
could anyone pls help...
for strcpy - the definition says that it copies the nul character as well
but how about strncpy..
i.e.
char *s="hello world";
strncpy(tmp,s,5);
...
hi,
is it more efficient to assign value to memory address by passing pointer to the function or by using return...
for instance...
void myfunc(int * a)
*a=4;
or
int myfunc(int a)...
Why is the following printed when executing the below code:
int *data;
int size = 100;
printf("Data size: %d\n",sizeof(data));
if ( (data = (int *) malloc(sizeof...