Do u people think aerobics work better to reduce our weight?? :) lavanya
lavanya81
Posts
-
aerobics -
const keywordHi, I am new to this forum>plz let me know which forum is suitable for 'C' language. And my question is - What are the possible ways of writing C codes using 'const' keyword. I have written some.I need few more. Plz go thru and send me any other cases where we can use const keyword in C only not C++.Hope I will get reply as early possible. const int degrees = 360; int const degrees1 = 180; const float pi = 3.14; const char quit = 'q'; int * const var1; const int * var2; int const * var3 const char * const Var4; char const * const Var5; void test1() const; const int * test2(); /* function returns a adress that could not be modified */ void test3(const int *i); const int arr1[]={1,2,3,4,5,6,7}; char const *arr="coderzone"; typedef struct member { char name[20]; long phno; }; const struct member M1 = {"Marino" , 62627000}; struct member * const M2 = {"John" , 2786900}; const struct member * const M3 = {"Smith",57361777}; union single { int I1; char C1; }; const union single S1 = {97}; union single * const S2 = {'A'}; const union single * const S3 = {'0'}; Thank U..
-
const keywordHi, I am new to this forum.I am working as a developper in C programming and working in compiler validation project. I hope I will get good response from u people as soon as possible. My question is : I want what are the possible ways of writing codes using 'const' keyword. I have written some.I need few more. Plz go thru and send me any other cases where we can use const keyword in C only not C++. const int degrees = 360; int const degrees1 = 180; const float pi = 3.14; const char quit = 'q'; int * const var1; const int * var2; int const * var3 const char * const Var4; char const * const Var5; void test1() const; const int * test2(); /* function returns a adress that could not be modified */ void test3(const int *i); const int arr1[]={1,2,3,4,5,6,7}; char const *arr="coderzone";