Search:

Type: Posts; User: ucsbme

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,307

    struct vs array

    babu..
    the most important difference seem to be ignored.
    where is quzah ... n all others????????

    ok...

    while an array can store only similar datatypes (may be user defined or primitive), a...
  2. structures are user-defined variables

    hey all,,

    structures are user defined variables.
    so we can do everything that we can do with primitive datatypes like int and char with struct also.
    but the storage of struct in memory memory...
  3. Thread: Reading Excel

    by ucsbme
    Replies
    7
    Views
    1,653

    reading and MS Excel

    meena....
    i think the following method should work...
    read the file , into a character array until you encounter a tab (\t)

    try sth like this:

    char a[25];
    int i=0;
    while(ch != '\t')
    {
  4. Replies
    6
    Views
    4,397

    C

    babu,
    in C, if u dont specify any argueemts , it means tht the function will behave normally for any type and number of arguemnts....
    so if u dont want a function to accept atguemtns thn u declare...
  5. Replies
    16
    Views
    1,803

    8 or 9 ...

    hey.. how did quzah miss this one?

    check the following code:

    #include<stdio.h>
    int main()
    {
    char *a;
    scanf("%[12345670]s",a);
    printf("%s",a);
  6. Replies
    5
    Views
    1,308

    * in %*d

    babu...
    '*' in '%*d' is called the suppression character.

    it means that a character , integer or whatever datatype it is , is read from the stdin,but is not alloted to a...
  7. Replies
    4
    Views
    1,329

    Re.. doubt about pointers

    babu...
    u should pass by address in-order to change the value of a variable defined in one function , in another function.

    but u r passing the variable by value.

    instead if u pass by address,...
  8. Replies
    3
    Views
    1,266

    far & huge pointer

    for every c program in execution, there is sth called address space where memory space is allocated for ur variables..( stack , heap, etc..) are located..
    every program has its own address...
  9. Thread: fork + malloc

    by ucsbme
    Replies
    1
    Views
    3,258

    fork + malloc

    when we fork a process, we get a COPY of the variables to the child process. and as the parent and child and process have two separate copies of variables , reassigining a varible decalred before...
  10. Replies
    17
    Views
    1,878

    C or C++ ??

    Well,
    C and C++ are both very powerful languages,
    and within some limits we can say that C is a subset of C++. this obviously means that C++ is bigger than C

    C was designed compact by KR. C++...
  11. Replies
    9
    Views
    1,962

    const Vs #define

    --->#define tells the compiler that whereever the compiler encounters the #defined variable below the #define statement ,replace the variable wth the #defined value.
    --->const tells the compiler...
  12. Thread: extern

    by ucsbme
    Replies
    2
    Views
    808

    all abt extern

    hope this will help u

    suppose i have 2 C files A and B
    i have a variable declared as "int x " in A. and i need to access it from B.

    then i declare it as "extern int x" in B and link file B to...
  13. Replies
    19
    Views
    3,463

    abt VOID *

    hey guys

    Quzah seems to be a the master of C......

    i feel VOID pointers can be used where u have to decide the type of pointer u need at the runtime ,in such cases u declare tht as a pointer to...
Results 1 to 13 of 13