#include <stdio.h>int main(){char *_ptr;*_ptr = malloc(10);*_ptr = 999;printf("%d",*_ptr);return 0;}
What will be the output of the following codeword = "Python Programming"n = len(word)word1 = word.upper()word2 = word.lower()converted_word = " "for i in range(n):if i % 2 == 0:converted_word += word2[i]else:converted_word += word1[i]print(converted_word)
#include <iostream>#include <string>#include <cstring>using namespace std;int main(int argc, char const *argv[]){const char *a = "whats\0Up";cout<<a;return 0;}