#define DIM( array, type) sizeof(array)/sizeof(type)
main()
{
int arr[10];
printf(“The dimension of the array is %d”, DIM(arr,
int));
}
Answer / susie
Answer :
10
Explanation:
The size of integer array of 10 elements is 10 *
sizeof(int). The macro expands to sizeof(arr)/sizeof(int) =>
10 * sizeof(int) / sizeof(int) => 10.
| Is This Answer Correct ? | 3 Yes | 2 No |
main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];
What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
find A^B using Recursive function
write a program for area of circumference of shapes
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
what is variable length argument list?
How to access command-line arguments?
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
What is full form of PEPSI
main() { clrscr(); } clrscr();
could you please send the program code for multiplying sparse matrix in c????