#include<stdio.h>
int main(){
int a[]={1,2,3,5,1};
int *ptr=a+4;
int y=ptr-a;
printf("%d",y);
}
Answer Posted / sridhar
1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does c mean in basketball?
What is malloc and calloc?
What is the size of array float a(10)?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Which built-in library function can be used to match a patter from the string?
What are the 32 keywords in c?
What is the general form of #line preprocessor?
What is the g value paradox?
Write a program to find the biggest number of three numbers in c?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Is c is a high level language?
How can I make sure that my program is the only one accessing a file?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What are the scope of static variables?