C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !



Posted By: dheeraj       Member Level: Gold       Posted Date: 28 Dec 2007       Category: Other

C Question



What will print out?
main()
{
char *p1=“name”;
char *p2;
p2=(char*)malloc(20);
memset (p2, 0, 20);
while(*p2++ = *p1++);
printf(“%s\n”,p2);

}







Select Answer:

0
1
empty string
19




      
Your Test Score: 0 / 0



Next Question: A project on which you are working calls for you to store small bits of frequently changing information about a page on the client. For this project, security is not a worry. In the above scenario, which type of state management do you use?
Previous Question: general
Related Questions:
  • How can you open a link in a new browser window?


  • Biztalk server


  • What is the output of the following C program? main() { int x=10, y=20,z; if(!y>=5) x=50; z=70; printf("x=%d z=%d",x,z); }


  • As a system administrator, you need to provide your routers with a Domain Name System (DNS) server. How many DNS servers can you specify with one command?


  • JavaScript is not case sensitive


  • Categories

    ASP.NET C# VB.NET 
    .NET Framework SQL Server Other 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    dotNet Slackers   BizTalk Adaptors    Web Design


    Contact Us    Privacy Policy    Terms Of Use