Find and explain output of the following program. Assume suitable header file. (c) int main() ‘char arr[ ] = ‘‘geeksforgeeks’’;char* ptr1 = arr; char + ptr2 = ptr1+3; printf(‘‘ptr2 – ptr1 =%d\n’’, ptr2 – ptr1);printf(‘‘ (int*)ptr2 – (int*) ptr1 = %d’’, (int*) ptr2–(int*) (ptr1); getchar(); returno;}
Answers
Answered by
0
Just download brackets software and check it yourself by typing same program
You can also use different softwares such as notepad++,etc
Similar questions
Science,
6 months ago
Science,
6 months ago
English,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago