FIND THE ANSWERS

Explain the basic concept of Pointer addition and subtraction. Also give one example program for each.in c?

Answer this question

  • Explain the basic concept of Pointer addition and subtraction. Also give one example program for each.in c?


Answers

Answer #1 | 23/12 2013 12:09
watch?v=Rxvv9krECNw https://www.youtube.com/watch?v=Rxvv9krECNw Everything u need 2 know about pointers -Richard Buckland
Answer #2 | 23/12 2013 21:20
include #include void foo(const unsigned *oa, size_t oa_len) { size_t i; static const char *s = "The quick brown fox jumped over the lazy dog!"; for (i = 0; i < oa_len; i++) putchar(toupper(*(s + *(oa + i)))); putchar('\n'); } int main(void) { static unsigned thing[] = { 1, 12, 25, 12, 11, 44, 3, 1, 12, 25, 12, 11, 3, 1, 12, 25, 12, 11, 3, 1, 12, 25, 12, 11, 3, 1, 12, 25, 12, 11, 44 }; foo(thing, sizeof thing / sizeof thing[0]); return 0; } put i++ to i-- for subtraction

Possible answer

Anonymous870927
Login to your account
Create new account