main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs?
Answer Posted / sumeet
Samco Systems
amco Systems
this will be the answer .. the reason being the ascii value
of r will be incremented so it now point to s( capital s
that is ) this account for (*ptr)++
next ptr++ will simply move you to the next charachter ..
Is This Answer Correct ? | 20 Yes | 7 No |
Post New Answer View All Answers
Explain how can I avoid the abort, retry, fail messages?
What is the difference between procedural and declarative language?
What are the parts of c program?
How can I find the modification date of a file?
Is boolean a datatype in c?
write a program to print largest number of each row of a 2D array
What is the concatenation operator?
Explain what is output redirection?
What are nested functions in c?
What are the __date__ and __time__ preprocessor commands?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Where register variables are stored in c?
What are the general description for loop statement and available loop types in c?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
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