Important: Use custom search function to get better results from our thousands of pages

Use " " for compulsory search eg:"electronics seminar" , use -" " for filter something eg: "electronics seminar" -"/tag/" (used for exclude results from tag pages)
Tags: ++p AnswerCompiler error Cannot modify a constant value Explanation p is a pointer to a constant integer But we tried to change the value of the constant integer 2, s i , is Answer mmmm aaaa nnnn Explanation si, is are all different ways of expressing the same idea Generally array name is the base address for that array Here s is the base address i is the index numberdisplacement from the base address So, indirecting it with is same as si is may be surprising But in the case of C it is same as si,
Ask More Info Of  A Seminar Ask More Info Of A Project Post Reply  Follow us on Twitter
12-10-2010, 10:12 AM
Post: #1
C Language Aptitude Test Paper

.pdf  C-Language-Aptitude-Test-Paper-By-Placementpapers.net_.pdf (Size: 286.7 KB / Downloads: 216)
‘C’ Language Aptitude Test Paper




Note : All the programs are tested under Turbo C/C++ compilers.
It is assumed that,
 Programs run under DOS environment,
 The underlying machine is an x86 system,
 Program is compiled using Turbo C/C++ compiler.
The program output may depend on the information based on this assumptions (for example
sizeof(int) == 2 may be assumed).
Predict the output or error(s) for the following:
1. void main()
{
int const * p=5;
printf("%d",++(*p));
}
Answer:Compiler error: Cannot modify a constant value.
Explanation:
p is a pointer to a "constant integer". But we tried to change the value of the "constant
integer".
2. main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
}
Answer:
mmmm
aaaa
nnnn
Explanation:
s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array
name is the base address for that array. Here s is the base address. i is the index number/displacement from
the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the case of C it is
same as s[i].
12-10-2010, 10:31 AM
Post: #2
RE: C Language Aptitude Test Paper

.docx  cpp prog.docx (Size: 13.34 KB / Downloads: 59)
C++ Programs

#include <iostream.h>
#include <conio.h>

void main()
{
clrscr();
int x = 10;
int y = 2;
int sum, difference, product, quotient;
sum = x + y;
difference = x - y;
product = x * y;
quotient = x / y;
cout << "The sum of " << x << " & " << y << " is " << sum << "." << endl;
cout << "The difference of " << x << " & " << "y << is " << difference << "." << endl;
cout << "The product of " << x << " & " << y << " is " << product << "." << endl;
cout << "The quotient of " << x << " & " << y << " is " << quotient << "." << endl;
getch();
}
Rating C Language Aptitude Test Paper Options
Share C Language Aptitude Test Paper To Your Friends :- Seminar Topics Bookmark
Post Reply 

Marked Categories : language aptitude pdf, aptitude test in c language pdf, aptitude test papers c program, technical seminar on c language, test papers for c language, latest c c aptitude, c aptitude test for output, c language aptitude test, aptitude test papers on c language, c language test paper, aptitude test of c c compiler, aptitude test of c language, aptitude test for c, c language aptitude, c apptitude test, c language text paper, aptitude test paper in compiler, aptitude test on c language, c langguage aptitude, c c aptitude test download, c aptitude test, ppt on c langauage appittitude, computer aptitude test project in c, aptitude test for c language, c language paper,

[-]
Quick Reply
Message
Type your reply to this message here.


Image Verification
Image Verification
(case insensitive)
Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  CCC’ TEST PAPERS mkaasees 0 182 24-10-2014 03:30 PM
Last Post: mkaasees
  CCC’ TEST PAPERS mkaasees 0 121 18-10-2014 04:48 PM
Last Post: mkaasees
  CCC’ TEST PAPERS mkaasees 0 196 24-09-2014 03:38 PM
Last Post: mkaasees
  (1) DESIGN OF THE QUESTION PAPER PHYSICS project maker 0 485 20-06-2014 02:49 PM
Last Post: project maker
  SBI PO Model Test Paper with Answers seminar post 0 439 19-04-2014 12:08 PM
Last Post: seminar post
  Frequently Asked C Language Interview Questions and answers seminar projects maker 0 498 20-03-2014 11:39 AM
Last Post: seminar projects maker
  Full Aptitude Questions & Answers study tips 0 891 07-06-2013 12:24 PM
Last Post: study tips
  Electronics & Communication Model Question paper study tips 0 980 15-05-2013 12:25 PM
Last Post: study tips
  Free Situational Judgement Test Questions study tips 0 880 28-02-2013 12:03 PM
Last Post: study tips
  Knowledge Question Paper 2012 study tips 0 660 18-02-2013 09:12 AM
Last Post: study tips
This Page May Contain What is C Language Aptitude Test Paper And Latest Information/News About C Language Aptitude Test Paper,If Not ...Use Search to get more info about C Language Aptitude Test Paper Or Ask Here

Options: