Open Shalu42 opened 8 months ago
Team Name: Lil techies
File Name: c/c++ 5
Line Number: [9]
Bug Description: increment the value appointed to the pointer and not the actual pointer itself
Solution: #include
void main() { int a = 10; int *ptr = &a;
(*ptr)++; // Increment the value pointed to by ptr
printf("%d", *ptr); // Print the incremented value
}
Bug Hunt Evaluation: Answer: ((9,),) Correctness: 1/1 Points: 100/100
b"Q\xf3\x1b\x10\x0b\x90\x81\xdb\x86D\xc1\xfc\x8d\x90\xd4z\xc1\xe7.\xad\n,\x7fk\x1dS\xb2\xbc\x07\xb8\x11\x8cnf\xea\xc7Q?\x85\x96;\xda\xa0\xf4\x02\x01\xf0\xbaCa\x06\x82\x01\xc9\x95*a'E\x89h\x19\xed\x17\x96\xc2\xf4\xac\x84I\x8fk,\xf3\xa169\xc8^\x8e)\xaem\x85G~v\xf98\xfc\x92#\x83\x7f1\x08r\r?\xdb\xbd\xb2\x7fAi\xbd\xd4 \x8b\x95YW\xa1\xe8\xf6\x02T\x90\xbe\xb7\xf0J\xae\x8c\xa7\x84\x85\x8a"
b'gAAAAABl9T3O-zosI0Tt9tioj9glcs1v_TSvedo4zhoWpXbNDBzwd10b_ggG3dOcaHspQ96Wv5eEeTx_I3S2fqcssMYU6yqvEGE5Kc8CH9vrlZo6ntZYI98hvAqyycbWdy_t-TLeNnyqqc05b0uExixvd_rCOjwI03aNhEazXECx9A16It6XW52gxupEiXenGgMoX0OA6gaDRJaMXN7ZNUOZQWbO0vfXq_wmy45UAp6lxAiBKGOhE2ENUqWY7Fd7cB5d6MdSs7DyRVzCA5w6ZDmhlT0-8LWqEGs3jY0JYHMzjRCn2fJAnWhMXVwIezRvL7o_Q4UUKVMBSNpDOYobq_slij271SOsylIZaIbHn73QbyGe1NzVVs9DbqhmibPjLNOFxlmI6oMarnhK-ajLr6gijj1gXS0CvVwzamxR5sWtZOyimnhTGKGt29lStkZdd0m1-zUhEjmZwKaBza69ucIhNBn1EeQuoNrzuE0cnAM306-MV2kQtx0Wc02uxT_MvksW2wrv-4BRg0nY2pxvFIPwjUhz0EinfpfQjn_mshnyPwI3dfENrGTlXuvWAPl-wtj7wB_ZbUli5K_AI3UYtPyTEbs4Farryg=='