write a program that explain #define and # undef directive
Answer / ravi joshi
The following code snippet explain the use of #define and
#undef preprorcessor directives.
/* define our own value of NULL */
#ifdef NULL
#undef NULL /* if NULL is already defined, then
undefine it */
#define NULL ((void*)0) /* define our own version of NULL
#endif
| Is This Answer Correct ? | 3 Yes | 2 No |
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Is c still relevant?
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
What is the best way to store flag values in a program?
Tell me the use of bit field in c language?
Do you have any idea how to compare array with pointer in c?
What language is windows 1.0 written?
What is the description for syntax errors?
How will you allocate memory to a double pointer ?
what would be the output of the following program? main() { int k = 123; char *ptr; ptr = &k; printf("%d",*ptr); }
Finding first/last occurrence of a character in a string without using strchr( ) /strrchr( ) function.
Why array is used in c?