Is this code legal?
int *ptr;
ptr = (int *) 0x400;
Answer / susie
Answer :
Yes
Explanation:
The pointer ptr will point at the integer in the
memory location 0x400.
| Is This Answer Correct ? | 17 Yes | 2 No |
how to print 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 using any loop(for or while) only once(only 1 loop) and maximum 2 variables using C.
19 Answers Cap Gemini, Infosys,
write a program to count the number the same (letter/character foreg: 's') in a given sentence.
program to find the roots of a quadratic equation
14 Answers College School Exams Tests, Engineering, HP, IIIT, Infosys, Rajiv Gandhi University of Knowledge Technologies RGUKT, SSC,
‎#define good bad main() { int good=1; int bad=0; printf ("good is:%d",good); }
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
Predict the Output: int main() { int *p=(int *)2000; scanf("%d",2000); printf("%d",*p); return 0; } if input is 20 ,what will be print
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector
#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];
How to count a sum, when the numbers are read from stdin and stored into a structure?