ajaybhardwaj789
BAN USER- 0of 0 votes
Answers`#include<stdio.h>
- ajaybhardwaj789 in India
int main(void)
{
int s[4][2] = { {1234,56}, {1212,33}, {1434,80}, {1312,78} };
int (*p)[2];
int i, j, *pint;
for( i=0; i<=3; i++)
{
p = &s[i];
pint = (int*)p; //Q. My Question is why we are required to type cast here. ?
printf("\n");
for( j=0; j<=1; j++)
{
printf("%d",*(pint+j));
}
}
return 0;
}`
Why we are required to perform the typecasting at the comment line ?
What is the exact difference between
1. Pointer to an array int (*ptr)[10]; and
2. Array of pointers int *ptr[10];| Report Duplicate | Flag | PURGE
CSC Software Engineer / Developer C - -6of 6 votes
AnswersHow to delete two rows from the table in database ?
- ajaybhardwaj789 in India
Note: Delete only first two rows from the Database.
<table style="width:300px" border="2px">
<tr>
<th>USERNAME</th>
<th>LOCATION</th>
</tr>
<tr>
<td>zac</td>
<td>california</td>
</tr>
<tr>
<td>zac</td>
<td>california</td>
</tr>
<tr>
<td>zac</td>
<td>california</td>
</tr>
<tr>
<td>zac</td>
<td>california</td>
</tr>
</table>| Report Duplicate | Flag | PURGE
Google Software Engineer / Developer Database
MySql Database!
- ajaybhardwaj789 May 10, 2014
I just didn't find out any way to represent the database table in proper format, so i just used the <tr> tags!
- ajaybhardwaj789 May 10, 2014I am representing here the table in horizontal format :
NAME : zac zac zac zac zac
LOCATION : california california california california california