can u give me the c codings for converting a string into
the hexa decimal form......
Answer / ravi jaiswal
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char x[25];
int i=0;
printf("Enter a string");
gets(x);
while(x[i]!='\0')
{
printf("%x\t",x[i]);
i++;
}
getch();
}
Is This Answer Correct ? | 3 Yes | 0 No |
Is it possible to type a name in command line without ant quotes?
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
main() { char a[4]="HELLO"; printf("%s",a); }
# include<stdio.h> aaa() { printf("hi"); } bbb(){ printf("hello"); } ccc(){ printf("bye"); } main() { int (*ptr[3])(); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[2](); }
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw...
6 Answers Microsoft, MSD, Oracle,
print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
what is oop?