C++ Institute CLA-11-03 Question Answer
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
char *t = "abcdefgh";
char *p = t + 2;
int i;
p++;
p++;
printf("%d ", p[2] - p[-1]);
return 0;
}
Choose the right answer:
C++ Institute CLA-11-03 Summary
- Vendor: C++ Institute
- Product: CLA-11-03
- Update on: Jul 20, 2025
- Questions: 40