#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
Explain the use of function toupper() with and example code?
Is javascript written in c?
What is call by value in c?
Explain null pointer.
What does s c mean on snapchat?
What is sizeof in c?
What is the difference between if else and switchstatement
Can you please explain the difference between syntax vs logical error?
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
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Can include files be nested? How many levels deep can include files be nested?
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
c program for searching a student details among 10 student details
State the difference between realloc and free.
What is meant by gets in c?