Program3
CodeChefOpen on judge ↗
#include int main() { int a[]={1,2,3,4,5,6}; int *j,k; j=a; j=j*2; k=a+4; k=k/2; printf("%d",1); return 0; } Rules: 1) Make the program bug-free by adding at most 3 preprocessor directives. 2) Changing given lines of code is not allowed.
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start