This is what i want..
Thank you guys for your kind reply..
User Profile
Collapse
-
the link give seems to be suitable for c++. will this work on C?...Leave a comment:
-
passing infinite number of arguments to a funcion in C
Hello guys,
i want to pass infinite number of arguments to a function and print all of them how can i do it in c.
example:
main(void)
{
foo(1,2,3,"welc ome","hi","how are you");
return 0;
}
i do know that foo() empty brace would accept infinite number of arguments but how to extract them one by one and use them -
Ok ... now in 8bit microcontroller if we say int means 16bit data type then in that case how can we find that...Leave a comment:
-
How to find the bit width of a processor
Hello Friends,
I wanted to know how to find out the bit width of a processor....wh ether it is 32bit or 64bit or 16 bit, can any one help how to write a c program for that...the code should be portable to any microprocessor or microcontroller
bye... -
-
How to access pointer inside a structure pointer
Hello friends,
struct datas{
int *a,*b;
} *name;
can you explain me how can i get the data at location pointed by *a and *b.
i tried,
name->*a = 10; // but this produces an error...
name->*b = 5; // but this produces an error...
Thanks...
H.Mohamed Thalib -
Hi JosAH,
Thanks ya, i got what i needed from your reply...
Regards,
Thalib H.MohamedLeave a comment:
-
Segmentation fault in my program
Hi guy,
I tried the following simple code. i compiled it in GCC and executed it in Linux environment.
when i executed the below code -. after getting the first input it pops up an error. at last i found that it was caused by getting the value returned by get_my_input () function in a variable. i don't know exactly why it happens........ ..can any one explain me...
[code=c]
#include <stdio.h>...
No activity results to display
Show More
Leave a comment: