what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
}
Answer Posted / praveen
2222228344
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is non linear data structure in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Write a code on reverse string and its complexity.
what is a function method?give example?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is a double c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Explain what is the benefit of using an enum rather than a #define constant?
What is size of union in c?
What is the main difference between calloc () and malloc ()?
List the difference between a While & Do While loops?
Why should I prototype a function?
What is memcpy() function?
If the size of int data type is two bytes, what is the range of signed int data type?