Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS401 Assignment No 01 Solution Spring Semester April 2013 Due Date:25-04-2013
#1


[B][SIZE="3"]CS401 Assignment No 01 Solution Spring Semester April 2013 Due Date:25-04-2013[/SIZE]



Assignment
Marks Distribution:
(2.5+2.5)+5+5+5 = 20
Application:
XYZ Technologies
XYZ Technologies is a leading international provider of automated and IT enabled solutions catering to
businesses across various verticals around the globe. Since its inception in 1995, XYZ has regimented itself being
committed to deliver the best software solutions. XYZ has ever since used highly experienced resources in
analysis, development, quality assurance, and implementation to provide a wide range of high-quality consulting
services and cost-effective development of customized application software. XYZ’s worldwide domain and
subject matter expertise, proven track record and the capability to act as solution integrators can give you a truly
cost-effective solution that not only meets, but surpasses your needs.
Scenario:
XYZ –Recruitment For Win32 Programmers
XYZ wants to hire Win32 programmers for its new projects. The basic requirements required for a programmer
are given below:
• Bachelor\'s in computer science/software engineering
• Have hands on knowledge of C/C++ language
• Have good knowledge about pointers and its different variations
Evaluation:
The following set of questions is made for the applicants who will apply for this job. Now you as an
applicant need to solve the given questions:
A. Consider the following statements
long double i, *ptr;
ptr = &i;
When the above given statements are executed in the RAM 10 bytes of memory will be reserved.
Let’s suppose on each byte some information is stored but what you will do when you want to change
only single a byte? Write the syntax to modify the byte no. 4 and 9 i.e. assign 25 to byte no. 4 and 45
to byte no. 9.
B. Write the total number of read and write operations against each statement, whereas num is integer
array and ptr is integer pointer.
S.No. Statements Read Operation Write Operation
1 **ptr=4;
2 *(num+3);
3 num= 67;
4 ***ptr=100;
5 *(ptr+4)=8;
C. Convert the following array subscripts into indirection format:
i. P[7];
ii. L[4][3];
iii. M[1][2][3];
iv. H[3][i];
v. X[1][4][2][3];
D. Read the following statements? (Reference: Concern Lecture No. 3 video lecture and slides for
complete understanding of concept).
a. char **array[];
b. char *(*array)();
c. int *func(int);
d. float (*func)(float);
e. char *( *name[20])( char, char);
Lecture Covered: This Assignment covers Lecture No.1 – Lecture No. 4
Deadline: Your assignment must be uploaded on or before 25th April, 2013.[/B]

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,319 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,904 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,924 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,159 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,237 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,962 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,658 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,792 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,695 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,794 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)