Search:

Type: Posts; User: csepraveenkumar

Search: Search took 0.00 seconds.

  1. another issue

    what do i do if i don't know the no. of arguments that have to be passed to the function with variable length argument i.e. in the above function what do i do if i want to do away with num completely?
  2. confused in using variable length argument functions

    #include<iostream>
    #include<cstdarg>
    using namespace std;
    double avge(int num,...);
    int main(){

    double x=avge(2,4.0,6.0);
    cout<<x<<endl;
    }
    double avge(int num,...){
  3. Replies
    10
    Views
    2,938

    help with initializing a char array

    is it possible to initialise a char array separately from where it is declared without using either a for loop or initialising the array character by character?
  4. ok. earlier i did not that int(*)(void *,void*)...

    ok. earlier i did not that int(*)(void *,void*) was actually being used for a cast. thankyou.
  5. help with passing a pointer to a function to another function

    how is the pointer to a particular function passed in the following code


    qsort((void **)lineptr,0,nlines-1,(int(*)(void*,void*))(numeric?numcmp:strcmp));
    is it the normal way to pass a pointer...
  6. re

    thank you for your reply. what you sad can be done. but i am trying to understand what that declaration means.

    another important observation. when i do the following initialisation the the warning...
  7. help with confusing declarations please

    in k&r c the following declaration is given to be pointer to array[13] of int

    int (*daytab)[13]
    on similar lines i initialize a pointer to array[2]of int in my program as follows

    int c[2];...
Results 1 to 7 of 7