Does malloc return the actual address or the relative address?
I believe that malloc returns actual address for ordinary pointers and relative addresses for far and huge pointers...is n't it so?
Type: Posts; User: aqua
Does malloc return the actual address or the relative address?
I believe that malloc returns actual address for ordinary pointers and relative addresses for far and huge pointers...is n't it so?
thanks a lot.....
does the value 10 have anything to do with the ascii codes ????
could somebody please explain how this works (Dos based):
int main( void)
{
int i ;
try this (assuming that amt is the length of the input string)
for( i = 0 ; i <= (amt-1) ; i++ )
backwards[ i ] = input[ amt - (i+1) ] ;
backwards[i]= '\0';
for(i=0; i<100; i++)
input3[i] = input[i];
use strcpy() to copy input to input3
syntax : strcpy(input3,input);
solution :
put the statement i=0 outside the loop.( before while)
getch() would be better.
You can calculate arithmetic expressions by converting it from infix to postfix form.
eg. infix : 3+4
postfix : 34 +
The algorithm for this is available in Data structure...
My doubts ....
1.
int main(void)
{
int i;
here's the eg. u wanted
#include<stdio.h>
#include<alloc.h>
typedef struct data
{
int num;
}object;
include this statement in your main program(prime.c)
#include "is_prime.h"
could somebody explain why the following code gives "invalid" as the output?
// code
float w=2.3;
if(w==2.3)
puts("valid");
else
puts("invalid");
i need some help regarding file updation in remote systems using c . is there any library function available?