# include <stdio.h>
int one_d[]={1,2,3};
main()
{
int *ptr;
ptr=one_d;
ptr+=3;
printf("%d",*ptr);
}
Answer / susie
Answer :
garbage value
Explanation:
ptr pointer is pointing to out of the array range of
one_d.
| Is This Answer Correct ? | 3 Yes | 0 No |
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }
Write a procedure to implement highlight as a blinking operation
main() { printf("\nab"); printf("\bsi"); printf("\rha"); }
how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 Answers Mentor Graphics, Microsoft,
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Is this code legal? int *ptr; ptr = (int *) 0x400;
Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.