const int perplexed = 2;
#define perplexed 3
main()
{
#ifdef perplexed
#undef perplexed
#define perplexed 4
#endif
printf("%d",perplexed);
}
a. 0
b. 2
c. 4
d. none of the above
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?
#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }
To reverse an entire text file into another text file.... get d file names in cmd line
Write a routine that prints out a 2-D array in spiral order
main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }
Is the following code legal? typedef struct a { int x; aType *b; }aType
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
Sir... please give some important coding questions asked by product companies..
Design an implement of the inputs functions for event mode
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped
Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..