1. Char * pointer = "12345" // where is it stored? 2. Printf(%s, pointer) // Output? 3. Printf(%s, *pointer) //Output? Why segmentation fault? 4. Printf(%d, pointer) /Output? 5. Printf(%d, *pointer) //Output? 6. Printf(%c, *pointer) // Output? 7. Pointer[0] = 0 //is it allowed? Cannot modify why? DSA problem. In an array that contains consecutive numbers find the (one) missing number. The count will be given. Example, array = 1,2,3,4,6,7,8,9 : count = 8. Ans = 5. Hint - find in O(logn). Binary search
Check out your Company Bowl for anonymous work chats.