# 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 |
Is this code legal? int *ptr; ptr = (int *) 0x400;
4. Main() { Int i=3,j=2,c=0,m; m=i&&j||c&I; printf(“%d%d%d%d”,I,j,c,m); }
main() { int i = 3; for (;i++=0;) printf(ā%dā,i); }
what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }
print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!
#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }
Write a program that reads a dynamic array of 40 integers and displays only even integers
Cau u say the output....?
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 ??
What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }
main() { 41printf("%p",main); }8
Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number