S
shiva
hello,
just i want to write a program which can take unknown number of
integers and sum these numbers using va_list,va_arg...
but, i am not able to recognize the last element in series.can u help
in this regard.
i want a generalized program , i dont want to terminate my series with
0 or any other pre-determined number.
u just tell me how can i recognize the last element.
i hv seen at the va_list example given in Turbo C help,but they r using
0 for end of numbers.
just i want to write a program which can take unknown number of
integers and sum these numbers using va_list,va_arg...
but, i am not able to recognize the last element in series.can u help
in this regard.
i want a generalized program , i dont want to terminate my series with
0 or any other pre-determined number.
u just tell me how can i recognize the last element.
i hv seen at the va_list example given in Turbo C help,but they r using
0 for end of numbers.