Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c x 9
Member Avatar for pavani2006
Member Avatar for venuaccha
Member Avatar for venuaccha
0
197
Member Avatar for satyanarayanam

Hi, I am trying to implement the sizeof() programe main() { int a,res; a = sizeOf(a); printf("size=5d\n",res); } int sizeOf( void var) { void *ptr; ptr = &var; return((char*)&ptr[1] - (char*)&ptr[0]); } But this is giving error , so plz check and correct it

Member Avatar for Narue
0
157
Member Avatar for venuaccha

I want to pass a 2D matrix to a function in C which modifies the elements of the matrix and the modifications should be effective in the calling function. How to achieve this in C.

Member Avatar for Salem
0
819