Open DikshantUbale opened 7 months ago
Team Name: TEAM DASH File Name: c/c++ 6 Line Number: [6] Bug Description: We can't return address of local variable in a function. Either make that Variable Global or return a pointer variable. (Make a Pointer variable y to that variable in that function to the x and then return x) Solution: int x; //Global Variable int *fun() { x = 5; return &x; }
Bug Hunt Evaluation: Answer: ((6,),) Correctness: 1/1 Points: 100/100
b"O\x0f\xb2\xb3\x0eH\x8f\xa2%-kd\x0b\x7f\x96/\xb1\xbc`\x83\xd9\xabLV\xffN&1:\xce\x13\xe2\x98Y,\xbaP\rp:\x8c\xa6\xd2\x16r~C\x0c\xd0\xd3\x80\x1d{\x9a\x05\x11\xfe\x93^b]x\x11\xf5\xff\xb9\x0ed08\Q\xda\xacy\x1e\x94 \x90A\x8d:[\x10\xe8H\x86[pt\xa6\xf3\xdb}\x9b\nv\xb7X\xf8\xf5\xc4\xabR}<\xf8\x11*\x17\xdf\x94\xfb\xac'\xee\x14\x91\x12\xc3\x1a\xe6\xd0l\x9f~\xd4\xf4"
b'gAAAAABl9SMxKtXQkvIi0ywhSa0rwgz7GV3ywth58y5rTfbUsV-161RW00TeNenLC5kFhRK1-u39KsQPL5lU4L9NhvvJXdlM0U4kejf56SMMEUDz5648B3trhaIstYN8IiMXDPMqBM2FNLCiDZgQ0Z9Z-8wNHqlfsJIAxUoIxYgP07jyj0HgvT6ue9q4O_G2bNksuBmAjUcJxwAJssyMvz1R1LCSCBIIHxW6s3huLDMoiku6srvwwTyHSjRpDDBiw8ZQJv4278os10agAr_rHPgDnM-BDqjtqyfm_ED72-LF-rf8n3Sb9vlxX9QozviigfcG2SHmBJC6f-E1dm9sp_PCi3oxDZQllyTe8qnrGRMVJqEFKx4KQrh83WbgcEhxogGt-n0B4Dph9IfddO6ypIw1wowxknP9Q8n-Hd9Dk0YSP9QGpfjkZx-hOTMmua3NSLNhhoivZz9ik-dqZ5O-o0j4GcDt_rhrl7z5l1LHevmnQ2worupF9-AUjfwG8rHw-2j_Gxu7gH4_IKnNejRXVyhiYdiBYMGF1U2NybWqx1JlKgZ6YAz5mI98RLenrrW4yjmVSKbxadAPtlF6gTRcM1zo5pkxZhKSKICwd3EBl6y2SvJv8YRK0='