That can be a definition or a declaration, depending on what type T is:
typedef void T();
T t; // declaration of function "t"
struct X {
T t; // declaration of function "t".
};
typedef...
Type: Posts; User: jackar56
That can be a definition or a declaration, depending on what type T is:
typedef void T();
T t; // declaration of function "t"
struct X {
T t; // declaration of function "t".
};
typedef...
For both C and C++, I would recommend you to go for JanBask Training. It best explains every topic in a very simple way from basics while covering all the concepts. Also, you can practice questions...
You have write 32 line in your program is wrong, rectify that one only.
You can use c[i]= '\0' or simply c[i] = (char) 0.
The null/empty char is simply a value of zero, but can also be represented as a character with an escaped zero.