#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 |
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 ?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
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
main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above
what is brs test reply me email me kashifabbas514@gmail.com
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
void main() { int i=5; printf("%d",i++ + ++i); }
writte a c-programm to display smill paces
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false