Why dont c comments nest?
No Answer is Posted For this Question
Be the First to Post Answer
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }
cavium networks written test pattern ..
what is default constructor?
What does void main return?
how to generate the length of a string without using len funtion?
what does static variable mean?
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
write a c prog for removing duplicate character from an array and sorting remaining elements using a single array
What is difference between structure and union in c?
Write a c program to print the sizes and ranges of different data types in c?