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


Please Help Members By Posting Answers For Below Questions

Explain how can I avoid the abort, retry, fail messages?

577


What is the difference between procedural and declarative language?

634


What are the parts of c program?

619


How can I find the modification date of a file?

689


Is boolean a datatype in c?

533






write a program to print largest number of each row of a 2D array

1856


What is the concatenation operator?

596


Explain what is output redirection?

651


What are nested functions in c?

551


What are the __date__ and __time__ preprocessor commands?

559


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

626


Where register variables are stored in c?

534


What are the general description for loop statement and available loop types in c?

670


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 ?

792


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

1415