Hi all,
What is the difference between char *a and char * a?
Where char * a can be used?
Thank you in advance.
Type: Posts; User: sarathius
Hi all,
What is the difference between char *a and char * a?
Where char * a can be used?
Thank you in advance.
what is the difference between if and #if. when to use what?
thanks in advance
I am having two structures with same elements. shall i give like this..
struct emp
{
int accno;
char name[10];
};
ya, you are right. But, i need help for the second statement in assigning values for structure elements. what's that "or(|)" symbol comes here.
if i am having a following structure
struct emp
{
int acc;
char name;
};
struct emp e;
I think u didn't understand my problem clearly. What i want is i am having a variable of name 'X', if i declare X as an int type. it will be of size 4 bytes. I dont know the type of the variable, it...
How to declare a variable length data type. It may be of any type (char, int, float).
for eg:
In linux,
int has 4 bytes
...
then how could i give values
i dont want to give null value. i need to give some values.
for eg:-
struct name
{
char nam[10];
};
tell me any one possibility to give a values for structure pointer.
I want to know what will be the output for the following statement. whether it is correct or not. If it is wrong what would be the correct code.
struct name *h={10,"aa"};
How to send a function in "sendto()" function in socket programming. I am having a function definition in .h file, i am including that file in socket programming. How to send that function from...
I want to get the values for the structure in one function and pass this values to the main and print those values in main. can i do this. my example code as follows. Is it correct or any changes i...
thanks matsp
i want to allocate 1MB of memory and partition those memory into pages, each of 4KB. Then i want to store the value returned by add function to one of the page allocated. I want the initial address...
i want to allocate pages of some KB which starts from address what i am giving.. one function, for eg: add function will be assigning to these pages. so the return value should be stored in that...
I am having some partitioned pages using malloc function. The malloc function will return a address to the variable. I have to assign a address value to this partitioned pages. I will assign a...
Does anybody know how to write a C program for APDU(Application Protocol Data Unit) packets or generally how data packets are written in C programming.. any reference material is there...
Please...
I want to get the 'n' value from other variable and i want to allocate those number of bytes. if i give n=3, it has to allocate 3 bytes, if n=4, it has to allocate 4 bytes. I think, now you will be...
I want to allocate 'n' bytes of memory. How can i do that. I have to get this n value from another variable. If i give n=3, it has to allocate 3 bytes of memory. How can i do this. I tried with the...
How to check it manually?
How to check the memory allocated using malloc function.
int *mem;
mem=(int *)malloc(sizeof(int));
How to check the memory allocated to mem.
Anyone help me to validate memory allocation using malloc function for the following code
int i,j,*page[16],u=0,p;
int *array1[4]; ...
Just for example I am doing this prog
I am getting the address value return from malloc. so from two addresses, I conclude that it is allocating 520 B of memory.
For eg:-
If the address value wheni=0 is 12435600, then the...