#include<stdio.h>
main()
{
FILE *ptr;
char i;
ptr=fopen("zzz.c","r");
while((i=fgetch(ptr))!=EOF)
printf("%c",i);
}
Answer / susie
Answer :
contents of zzz.c followed by an infinite loop
Explanation:
The condition is checked against EOF, it should be checked
against NULL.
| Is This Answer Correct ? | 2 Yes | 4 No |
Who could write how to find a prime number in dynamic array?
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 Answers Mentor Graphics, Microsoft,
how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!
Give a one-line C expression to test whether a number is a power of 2.
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
main() { if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above
Write a procedure to implement highlight as a blinking operation
You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
Write a program to model an exploding firecracker in the xy plane using a particle system