Hi, i have a project that the teacher want a pyramid of
numbers in C# or java...when we click a button...the
pyramid should be generated in a listbox/or JtextArea...and
the pyramid should have the folowing form:
1
232
34543
4567654
567898765
67890109876
7890123210987
890123454321098
90123456765432109
0123456789876543210
Plz help with codes...didn't find anything on the net.
No Answer is Posted For this Question
Be the First to Post Answer
void pascal f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } void cdecl f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } main() { int i=10; f(i++,i++,i++); printf(" %d\n",i); i=10; f(i++,i++,i++); printf(" %d",i); }
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
write a program in c to merge two array
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000
write a program for area of circumference of shapes
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }
main() { char c; int i = 456; clrscr(); c = i; printf("%d", c); } a. 456 b. -456 c. random number d. none of the above
Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.
Write a program to model an exploding firecracker in the xy plane using a particle system
Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)
3 Answers Disney, Google, ZS Associates,
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }