#define f(g,h) g##h
main O
int i=0
int var=100
;
print f ("%d"f(var,10));}
what would be the output?
Answer / ricky
It will show an error:
Undefined symbol var10 in main function
| Is This Answer Correct ? | 4 Yes | 3 No |
#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20
What is the Purpose of 'extern' keyword in a function declaration?
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
What are lookup tables in c?
write a program to print infinte number
What is a Genralised LInked List?? Please give a detailed explation of it..
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What does struct node * mean?
Why does everyone say not to use scanf? What should I use instead?
which one low Priority in c? a)=,b)++,c)==,d)+
How can you invoke another program from within a C program?
What are pointers? What are stacks and queues?