#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 / anunithi

4

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of function toupper() with and example code?

620


Is javascript written in c?

555


What is call by value in c?

538


Explain null pointer.

593


What does s c mean on snapchat?

563






What is sizeof in c?

551


What is the difference between if else and switchstatement

1285


Can you please explain the difference between syntax vs logical error?

666


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

619


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1232


Can include files be nested? How many levels deep can include files be nested?

629


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

632


c program for searching a student details among 10 student details

1630


State the difference between realloc and free.

607


What is meant by gets in c?

572