Search:

Type: Posts; User: sarathius

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,068

    Difference between character pointer

    Hi all,

    What is the difference between char *a and char * a?
    Where char * a can be used?

    Thank you in advance.
  2. Replies
    1
    Views
    5,316

    difference between if and #if

    what is the difference between if and #if. when to use what?

    thanks in advance
  3. Replies
    9
    Views
    2,233

    doubt in structures

    I am having two structures with same elements. shall i give like this..



    struct emp
    {
    int accno;
    char name[10];
    };
  4. Replies
    3
    Views
    2,356

    ya, you are right. But, i need help for the...

    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.
  5. Replies
    3
    Views
    2,356

    giving value to structure elements

    if i am having a following structure



    struct emp
    {
    int acc;
    char name;
    };
    struct emp e;
  6. Replies
    4
    Views
    1,646

    I think u didn't understand my problem clearly....

    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...
  7. Replies
    4
    Views
    1,646

    declaring data type

    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
    ...
  8. Replies
    8
    Views
    1,431

    then how could i give values

    then how could i give values
  9. Replies
    8
    Views
    1,431

    i dont want to give null value. i need to give...

    i dont want to give null value. i need to give some values.

    for eg:-


    struct name
    {
    char nam[10];
    };
  10. Replies
    8
    Views
    1,431

    tell me any one possibility to give a values for...

    tell me any one possibility to give a values for structure pointer.
  11. Replies
    8
    Views
    1,431

    structure variables

    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"};
  12. Replies
    1
    Views
    1,020

    function calling in socket programming

    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...
  13. Replies
    1
    Views
    8,815

    passing structure variables into function

    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...
  14. Replies
    7
    Views
    1,537

    thanks matsp

    thanks matsp
  15. Replies
    7
    Views
    1,537

    i want to allocate 1MB of memory and partition...

    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...
  16. Replies
    7
    Views
    1,537

    i want to allocate pages of some KB which starts...

    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...
  17. Replies
    7
    Views
    1,537

    memory addressing

    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...
  18. Thread: APDU packets

    by sarathius
    Replies
    1
    Views
    1,186

    APDU packets

    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...
  19. Replies
    17
    Views
    3,355

    I want to get the 'n' value from other variable...

    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...
  20. Replies
    17
    Views
    3,355

    memory allocation in bytes

    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...
  21. Replies
    5
    Views
    1,454

    How to check it manually?

    How to check it manually?
  22. Replies
    5
    Views
    1,454

    Memory allocation

    How to check the memory allocated using malloc function.



    int *mem;
    mem=(int *)malloc(sizeof(int));


    How to check the memory allocated to mem.
  23. Replies
    1
    Views
    1,359

    how to validate memory allocation

    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]; ...
  24. Replies
    7
    Views
    1,185

    Just for example I am doing this prog

    Just for example I am doing this prog
  25. Replies
    7
    Views
    1,185

    I am getting the address value return from...

    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...
Results 1 to 25 of 39
Page 1 of 2 1 2