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,
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C Language Aptitude Test Paper
Post: #1

.pdf  C-Language-Aptitude-Test-Paper-By-Placementpapers.net_.pdf (Size: 286.7 KB / Downloads: 306)
‘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;
Answer:Compiler error: Cannot modify a constant value.
p is a pointer to a "constant integer". But we tried to change the value of the "constant
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]);
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].
Post: #2

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

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

void main()
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;
Post: #3
thanks for the PDF

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
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
  amar ujala hindi news paper date wise Guest 1 222 Today 04:35 PM
Last Post: jaseela123
  disadvantages of doordarshan in hindi language Guest 1 222 Today 02:52 PM
Last Post: jaseela123
  iee paper parental control in android Guest 1 131 Today 12:45 PM
Last Post: jaseela123
Wink ccc question paper in hindi with answers Guest 1 238 Today 10:27 AM
Last Post: jaseela123
  paper presentation of repair and rehabilitation Guest 0 0 Yesterday 07:49 PM
Last Post: Guest
  ppt on electric drives used in paper mills Guest 1 184 Yesterday 04:48 PM
Last Post: jaseela123
  base paper of government scheme management system java project pdf Guest 0 0 Yesterday 03:37 PM
Last Post: Guest
  integration test cases for actitime application Guest 1 224 25-04-2017 04:19 PM
Last Post: jaseela123
  download pdf file of research paper of cyborg a cybernetic project Guest 1 0 25-04-2017 03:07 PM
Last Post: jaseela123
  vijayavani kannada news paper old Guest 1 186 25-04-2017 03:04 PM
Last Post: jaseela123
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