search
Log In
1 vote
98 views

what is the meaning of  k= (char *) (i*j)

it will return k =(char *) (300)

in Programming 98 views

1 Answer

0 votes
answer will be 300.

It will print 44 if k is declared as type char.

edited by

Related questions

0 votes
0 answers
1
226 views
Please explain the output for the following program: #include<stdio.h> int main() { int i = 100; int *a = &i; float *f = (float *)a; (*f)++; printf("%d", *a); //getting some garbage value }
asked Sep 2, 2018 in Programming garvit_vijai 226 views
3 votes
2 answers
2
501 views
#include <stdio.h> int main() { int A[3][4] = {{1,2,3,4}, {4,5,6,7}, {8,9,10,11} }; int *p = &A[0][0]; int *q = (int*)(&A[0]+1); int *z = (int*)(&A+1); int *w = (int*)A; printf("%d\n",*(p + 1)); printf("%d\n",*(q - 2)); printf("%d\n",*(z - 2)); printf("%u %d\n",w,*(w+1)); }
asked Dec 14, 2016 in Programming dd 501 views
0 votes
1 answer
3
407 views asked May 14, 2016 in Programming Sourabh Kumar 407 views
0 votes
1 answer
4
165 views
K is int type K=2.0/9; What k will print? In let us c they give that k final value is 0.0 But I think it's value is 0
asked May 13, 2016 in Programming Sourabh Kumar 165 views
...