#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?
Answers were Sorted based on User's Feedback
Answer / er. preeti
There is no error in this code. If you will compile this
code in Borland Turbo C++ compiler, then the program will
be compiled easily and no error will be shown at that
time. In addition, if you want the output then include
getch(); after the printf statment. You will get the
output definetly.
#include "math.h"
void main()
{
printf("Hi Everybody");
getch();
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / siva.kumar
above error will come
error C3861: 'printf': identifier not found
| Is This Answer Correct ? | 0 Yes | 1 No |
What is your nationality?
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
main() { char *cptr,c; void *vptr,v; c=10; v=0; cptr=&c; vptr=&v; printf("%c%v",c,v); }
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"
main() { 41printf("%p",main); }8
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
Write a program to print a square of size 5 by using the character S.
Finding a number which was log of base 2
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.