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
  abstract of ieee seminar paper on bionic eye Guest 2 199 18-01-2018 01:14 AM
Last Post: Austinfloro
  sound pollution information in marathi language pdf file Guest 3 5,654 12-01-2018 12:09 PM
Last Post: dhanabhagya
  Biometrics Security System Full Download Seminar Report and Paper Presentation computer science crazy 29 55,916,168 08-01-2018 05:23 PM
Last Post: Raymondnof
  Chemical Test for Caffeine mkaasees 1 0 07-01-2018 12:54 PM
Last Post: Guest
  marathi language information 11th commerce o c project Guest 0 0 03-01-2018 06:45 PM
Last Post: Guest
Smile indian janadhipathyam neridunna velluvilikal in malayalam language Guest 2 167 02-01-2018 12:28 PM
Last Post: dhanabhagya
Thumbs Up loknama matka paper Guest 3 5,018 27-12-2017 11:26 AM
Last Post: Guest
  Sample IEEE Paper for A4 Page Size seminar class 2 276,361 22-11-2017 03:02 PM
Last Post: Guest
  ap pgecet 2010 question paper with key Guest 1 253 18-11-2017 10:23 AM
Last Post: jaseela123
  download ppt for ieee paper efficient authentication for mobile n pervasive computing Guest 1 197 18-11-2017 10:21 AM
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