in my machine it prints 7 6 8
Type: Posts; User: prathiksa
in my machine it prints 7 6 8
yes,the correct one is
printf("%d %d %d \n",a++,a++,++a);
int a = 5;
printf("%d %d %d\n", a + 1, a + 2, a + 3);
int a = 5;
printf("%d %d %d \n",a++,a++,++a);
it prints 7 6 8
im using gcc compiler,
how it evaluates....
how to populate a structure in command line arguments
so,
struct
{
---
---
}
int main(int argc,char**argv)
i have two c files
in the first file i have declared and initialised an array and i need to use the array in my second file also,how to use the same array in my second file......
sorry its array[i]
i need to write the function to copy the values of the array from one to another
i want to fill the static values of the array into another array,its working fine,just want to know ,is this is right or any other method for copying the arrays..
#include<stdio.h>...
wat about C,the same prodecure like c++ or we can initialise
how to do initialisation then
it showing error when i declare an static array
fun(int array1[],int array2[])
{
array1 [] = { 12,3,5,3,2,7,3,
7,6,4,3,2,1,1};
array2 [] ={ 2,3,5,3,2,7,3,
...
im just checking the syntax errors
i have initialised int last = n-1;
int *l ;
l = &last;
still the same error,i think may be its due to types of the integer variable and float arrays
im getting the error when compiling the code...
float array[20];
int last;
array[last[array]];
how to get red of this
oooh again it showing errors
i need to assign the image1 size to image2
but it says
height in something not a structure or union
width in something not a structure or union
-------------
thanks,i fix it
no error
it says height in something not a structure or unoin
thanks,but it still says
incompatible types when assigning to type VALUES from type void*
i started learning c,i know malloc is for dynamic allocation but i dont know how to use with structure,using the image1 parameters i have to allocate space in memory
//it showing error "incompatible...
one more question
how to change the size of an array replacing redim
thanks
now image_a copies the entire image_b right?
it is accessed linearly in ordinary array
array[289];
have an already loaded image
after some manipulations going to write the image (from picture 1 to picture 2)
i just want a function to...
picture1,picture2 as picture