wht will be the output for following line of code
printf(3+"abcdef");
Output is def
3+ means that leave first 3 char in the quotes and print the rest.
If we use in the string %d or %c (format specifiers ) the it consider it as 2 seprate char(% and d) not 1.
so if code is...
The problem is in the following code :
main(){
int arr[2][2] = {1,2,3,4};
int **a;
a = arr;
printf("Value of a+1 -> %d",*(a+1));
}
This code is printing value 2 whether we define int **a or int ***a or int ****a ??????
Can anyone explain me this.
I hv tested this code on Linux as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.