c programming..what wil be the output of this program 0 Answer(s) 5 months and 3 days ago
Posted in : Java Beginners
#include
int main()
{
int arr[] = {0,1,2,3,4};
int i,*ptr;
for (ptr=arr+4; ptr= arr; ptr--) {
printf("%d",*ptr);
}
return 0;
}
View Answers
Related Pages:
c programming..what wil be the output of this program cprogramming..whatwil be the output of this program #include
int main()
{
int arr[] = {0,1,2,3,4};
int i,*ptr;
for (ptr=arr+4; ptr= arr; ptr--) {
printf("%d",*ptr
C Program to Print Following Output - Development process CProgram to Print Following Output Hello Sir I wnat to print Followning output in C Language with for loop How I Can Print it?
5
5 4
5 4 3
5 4 3 2
5 4 3 2 1 Hi Friend,
Try the following:
#include
output
output Sir,I am experiencing some problems with the output of this program.I got some useful help this website,but the output of the program isn't producing what it should.let me explain the output below is what happen when
input output
input output java program using fileinputstream...) throws Exception {
FileInputStream in = new FileInputStream("c:/hello.txt");
FileOutputStream out = new FileOutputStream("C:/data.txt");
int c
input output
input output java program using fileinputstream...) throws Exception {
FileInputStream in = new FileInputStream("c:/hello.txt");
FileOutputStream out = new FileOutputStream("C:/data.txt");
int c
I/O Program output error
I/O Programoutput error Hello All,
I am working on a program that requries me to read and analyze a .txt file and output the results to a .txt file, but I am getting incorrect output. I have been successfull with part
<c: out> For Simple Calculation and Output
<c: out> For Simple Calculation and Output
 ... purpose core library tag is <c:
out>. The main function of the this tag is to display the output to the
user. It works like expression tag in jsp <%= ---%>
output of the program output of the program public static int sum(List list)
{
int sum = 0;
for ( Iterator iter = list.iterator(); iter.hasNext(); )
{
int i = ((Integer)iter.next()).intValue();
sum += i;
}
return sum
C Programming SubString Program CProgramming SubString Program Sir I want to Check whether...
First String- CPROGRAMMING
Second String- CPROGRAM
third String- PROGRAMMING
if i entered to check PROGRAM is exists in given three strings then output
plz explain me the output of program - Java Beginners
;Hi Friend,
Output of this program is:
a=2
b=0
c=0
mul=27
volume=18...plz explain me the output of program Hi friends,
can u please explain me the output of below program with proper explanation of each and every line
input output in java
input output in java java program using filereader and filewriter... Exception {
FileInputStream in = new FileInputStream("c:/hello.txt");
FileOutputStream out = new FileOutputStream("C:/data.txt");
int c
program of c program of c write a program in c to display a to z without using printf or scanf statements or header files
c++ program c++ program Write a program which reads a text from the keyboard and displays the following information on the screen in two columns:
(a) Number of lines
(b) Number of words
(c) Number of characters
Strings should be left
C Program C Program Why doesn't the code
int a = 1000, b = 1000;
long int c = a * b;
work?
plz help me sir
c programming c programming Write a Program in 'C' to print the following
output 'n' rows.
for example, if n:3, the following should
be output by the program :
1
1 2 L
r 2 3 2 1
1 2 L
1
c programming c programming Write a Program in 'C' to print the following
output 'n' rows.
for example, if n:3, the following should
be output by the program :
1
1 2 L
r 2 3 2 1
1 2 L
1
c program c program How to convert binary digits to decimal number without using power function
C# C# i need a code that will make program perform the basic operations upon the data Listview save, update and cancel
c++ c++ write a program that gets a key or character from the keyboard and displays it ASII code in decimal, hexadecimal and binary form.It must also give a description of the key pressed
c++ c++ .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70
c program c program plz send me program for this. write a program to print the following code? (in c language)
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10 11
2 3 4 5 6 7 8 9 10
C program C program hi, here is my question:
Create a structure to specify data on students given below: Roll number, Name,Department, Course, Year... a function to print names of all students who joined in a particular year. (c
c program c program plz send me program for this. write a program to print the following code?
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10 11
2 3 4 5 6 7 8 9 10 11 12
3 4
program in c program in c Write a program that inputs five different integers from the keyboard, then print the sum, the product, the smallest and the largest of these numbers. Use only single selection form of if statement.
For example: 1 3
c++ c++ Write the definition of the class dayType that implements the day of the
week in a program. The class dayType should store the day, such as
Sunday for Sunday. The program should be able to perform the following
operations
c++ c++ Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA
7) Display Student GPAs as Letter Grades (A, B, C, D
c++ c++ Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9... that the value of "y" is sent to the standard output stream via the stream insertion operator at the conclusion of the for-loop
What is displayed on the standard
C Program to Print Stras - Development process CProgram to Print Stras How I can Print Following Output using Two For loops in C Language?
*
* *
* * *
* * * *
* * *
* *
* Hi Friend,
Try the following:
#include
#include
void main(){
int i=0
Redirecting the console output into a file in Java
Redirecting the console output into a file in Java Hi,
i coded a program that read specific lines from a text file.
It's working well.
Now i want to redirect the output of the console to a text file.
i used your tutorial
c++ - AOP c++ hi friends,i got this question and i need u help.
"Two subjects namely computer aided design(subject1)and computer programming(subject2....
a program is required which will read in the marks as above for each students
triangle output
triangle output program to get the following output
C,C++ C,C++ Sir,
100&30 gives output 4 in C++ and
100|30 gives output 116
How & and | gives output 4 and 116
triangle output
triangle output program to get the following output:
*
*
Hi Friend,
Please specify the pattern properly.
Thanks
C,C++ C,C++ int i=100,j=20;
int c=i&j;
int r=i|j;
printf("%d",c);
printf...(){
int i=100,j=20; int c=i&j; int r=i|j;
printf("%d",c);
printf("%d",r);
getch();
}
The above code displays the output: 4116
Sir how i&
method overloading in c program
method overloading in c program how is method overloading in Cprogram is different from C++ program
output error output error this is my program
import java.io.*;
public class...];
for (k=0;k
}
}
if i enter "my name" as the input the output is only "my" what is the error.my actual out put should be"my name
what is the output? what is the output? public class MyAr{
public static void main(String argv[])
{
int[] i=new int[5];
System.out.println(i[5]);
}
}
 ... Program is:
public class MyAr{
public static void main(String argv
malloc in c example program
malloc in c example program What is malloc in c? Please explain the term using an example in Cprogram.
Thanks
input output
Input And Output
Introduction
The Java I/O means Java Input/Output and is a part... used for writes byte to output stream. It
implements a buffered output
Shortest the program as possible but output will not change
Shortest the program as possible but output will not change #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define MAX_BUF 50 // Size of the buffer to hold intermediate
Shortest the program as possible but output will not change
Shortest the program as possible but output will not change #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define MAX_BUF 50 // Size of the buffer to hold intermediate
C program - SQL C program Write a Cprogram for airport simulation using queue data structures.
Please reply me
<c: out> in JSTL
tag is <c:
out>. The main function of the this tag is to display the output...;
The output of the program is given below:
Download this
example.
 ...<c: out> in JSTL
 
c program - IoC c program given the string "wordprocessing",write a program to read the string from the terminal and display the same in the following formats:
a) word processing
b) word
processing
c) w.p.
c program - Java Beginners c program 1. How to write a program to Add 2 numbers without using int .size should be more than machine size