#include <stdio.h>
#define a 10
main()
{
#define a 50
printf("%d",a);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
50
Explanation:
The preprocessor directives can be redefined
anywhere in the program. So the most recently assigned value
will be taken.
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / naveen
it will print the most recently processed value .i.e 50
because the preprossed values can be set anywhere in the
program at any time
Is This Answer Correct ? | 4 Yes | 0 No |
Is it possible to type a name in command line without ant quotes?
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.
21 Answers ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);
Link list in reverse order.
char inputString[100] = {0}; To get string input from the keyboard which one of the following is better? 1) gets(inputString) 2) fgets(inputString, sizeof(inputString), fp)
main() { main(); }
Write a procedure to implement highlight as a blinking operation
void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(ā%dā,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(ā%dā,*cptr); }
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }
How to count a sum, when the numbers are read from stdin and stored into a structure?