Write a program to model an exploding firecracker in the xy
plane using a particle system
No Answer is Posted For this Question
Be the First to Post Answer
How can you relate the function with the structure? Explain with an appropriate example.
How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.
How we will connect multiple client ? (without using fork,thread)
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
There were 10 records stored in “somefile.dat” but the following program printed 11 names. What went wrong? void main() { struct student { char name[30], rollno[6]; }stud; FILE *fp = fopen(“somefile.dat”,”r”); while(!feof(fp)) { fread(&stud, sizeof(stud), 1 , fp); puts(stud.name); } }
find A^B using Recursive function
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)
write a c program to print magic square of order n when n>3 and n is odd?
main() { printf("%x",-1<<4); }