#include Declaration syntax: double log(double);
After sometime the stack memory will be filled completely. Hence stack overflow error will occur.
Comments
Copyright ©CuriousTab. All rights reserved.Discussion
Home
‣
C Programming
‣
Floating Point Issues
See What Others Are Saying!
Which statement will you add in the following program to work it correctly?
#include<stdio.h>
int main()
{
printf("%f\n", log(36.0));
return 0;
}
Options
Explanation
More questions
#include<stdio.h>
int main()
{
char huge *near *far *ptr1;
char near *far *huge *ptr2;
char far *huge *near *ptr3;
printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
return 0;
}
Options
Correct Answer: 4, 4, 2
#include<stdio.h>
int main()
{
struct node
{
int data;
struct node *link;
};
struct node *p, *q;
p = (struct node *) malloc(sizeof(struct node));
q = (struct node *) malloc(sizeof(struct node));
printf("%d, %d\n", sizeof(p), sizeof(q));
return 0;
}
Options
Correct Answer: 2, 2
Options
Correct Answer: Yes
Explanation:
Options
Correct Answer: *
#include<stdio.h>
int main()
{
int arr[] = {12, 13, 14, 15, 16};
printf("%d, %d, %d\n", sizeof(arr), sizeof(*arr), sizeof(arr[0]));
return 0;
}
Options
Correct Answer: 20, 4, 4
void *cmp();
Options
Correct Answer: cmp is a function that return a void pointer.
Options
Correct Answer: True
Explanation:
Options
Correct Answer: False
Explanation:
Options
Correct Answer: stdio.h
Explanation:
Options
Correct Answer: True
More in C Programming:
Programming