VUsolutions Transferred to AchiKhasi.com

From December 2011, this blog www.VUsolutions.blogspot.com is transferred to http://achikhasi.com/vu/ . So, you may visit http://achikhasi.com/vu/ for latest study related help.

Back to home VUsolutions

VUsolutions Fans Club [join us for MORE solutions]

VUsolutions on Facebook

CS201 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This

 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Q1- Determine the value of m and n after the execution of code given below.

int m = 44;
int* p = &m;
int& r = m;
int n = (*p)++;
int* q = p - 1;
++*q; 

Assume that integers occupy 4 bytes and that m is stored in memory. (5 MARKS)

Q2- Write a program which defines two strings "Hello" and "Pakistan", merges both the strings using string manipulation function and displays on the screen. (5)

Q3- How the function strcpy() is different from the function strncpy() in terms of their working?
Q4- Determine the output of the given code segment. 

#include <iostream.h> 
main()
{
char *name[] = {"Ali", "Ahmad", "Riaz"};
int x;
int y; 
x = sizeof(name);
y = sizeof(*name);
cout<<x<<endl<<y; 
return 0;
}

Q5- We know that random method for accessing the files increases the performance but there are certain constrainsts on it. Mention those constraints

Q6- Write the code to access the element at third row and second column of a 2D array uses pointer named arrayptr.

Back to home VUsolutions

Shaadi.com: Just create ur account & find ur partner or EARN money, its reall & EASY

VUsolutions Followers (Join NOW and Get Extra Benefits)

Install LATEST toolbar having lot of features - GET solutions on Desktop

toolbar powered by Conduit
Caliplus 300x250 NoFlam VitoLiv 468x60 GlucoLo