C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 1 2 2 1 2 2 1 1 1 2 2 1 2 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 4 5 5 5 2 4 5 2 5 5 2 4 4 5 5 5 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming String concatenation means - Merging two strings. Combining two strings. Comparing the two strings to define the larger one. Extracting a substring out of a string. Partitioning the string into two strings. Merging two strings. Combining two strings. Comparing the two strings to define the larger one. Extracting a substring out of a string. Partitioning the string into two strings. ANSWER DOWNLOAD EXAMIANS APP
C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 3 3 3 3 4 2 4 2 2 2 3 3 3 3 4 2 4 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} None of these 4 6 7 5 None of these 4 6 7 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means p is one dimensional array of size 5, of pointers to integers. The same as int *p[ None of these. p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. The same as int *p[ None of these. p is a pointer to a 5 elements integer array. ANSWER DOWNLOAD EXAMIANS APP