#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
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Explain what math functions are available for integers? For floating point?
In a byte, what is the maximum decimal number that you can accommodate?
What are structure types in C?
Which header file is used for clrscr?
What is the use of ?
What are categories used for in c?
What are the preprocessor categories?
Mention four important string handling functions in c languages .
What is the use of sizeof () in c?
How can you access memory located at a certain address?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Can static variables be declared in a header file?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is const keyword in c?