how to print this sereis 2 4 3 6 5..........?
Answers were Sorted based on User's Feedback
Answer / iamdluffy
something like
for(n=2;n<somenumber;n++)
{
print n;
print n*2;
n=n-1;
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / taz
2 3 5 is prime number & 4 after 2, 6 after 3...is two times
of previous number.
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the use of linkage in c language?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
how do we remove the printed character in printf statement and write next it it
What is the use of ?
Explain how can you tell whether a program was compiled using c versus c++?
struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(ā%dā,s.x); }
Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.
1 Answers Amazon, CSJM, HCL, Microsoft, TCS, Wipro,
IS STRUCTURES CAN BE USED WITHIN AN ARRAY?
i want to have a program to read a string and print the frequency of each character and it should work in turbo c
How can I recover the file name given an open stream?
c program to print a name without using semicolon
write a own function for strstr