Write a Program in 'C' To Insert a Unique Number Only.
(Hint: Just Like a Primary Key Numbers In Database.)
Please Some One Suggest Me a Better Solution for This question ??
No Answer is Posted For this Question
Be the First to Post Answer
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
write a origram swaoing valu without 3rd variable
main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O
Find your day from your DOB?
15 Answers Accenture, Microsoft,
Code for 1>"ascii to string" 2>"string to ascii"
1 Answers Aricent, Global Logic,
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above
Write a program to print a square of size 5 by using the character S.
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
void main() { static int i=i++, j=j++, k=k++; printf(“i = %d j = %d k = %d”, i, j, k); }
main() { char not; not=!2; printf("%d",not); }
How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)