Search:

Type: Posts; User: murugaperumal

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,258

    #include main() { int...

    #include<stdio.h>
    main()
    {

    int a,b,c;
    scanf("%d-%d-%d",&a,&b,&c);
    printf("%d%d%d",a,b,c);
    }
  2. Replies
    3
    Views
    1,473

    You can't get the integer value for a string. But...

    You can't get the integer value for a string. But you can get the integer value for a character.

    Example:


    #include<stdio.h>
    main()
    {
    printf("%d\n",'a');
    }
  3. Thread: Floats

    by murugaperumal
    Replies
    7
    Views
    1,327

    Are you expecting like this? ...

    Are you expecting like this?


    #include<stdio.h>
    main()
    {
    float a=12.343434;
    printf("%.3f",a);
    }
  4. Replies
    26
    Views
    13,787

    You can use the following code. But you need get...

    You can use the following code. But you need get the input as string.


    #include<stdio.h>
    main()
    {
    int number;
    printf("Enter the 10 digit numbers\n");
    ...
  5. Replies
    26
    Views
    13,787

    You can use the following code, if you accept...

    You can use the following code, if you accept the input type as character array. Then the following code will work fine.


    #include<stdio.h>
    main()
    {
    char number[15];
    ...
  6. Replies
    7
    Views
    2,268

    The problem may be, you may forget to allocate...

    The problem may be, you may forget to allocate the memory for that *board.

    If it is not a problem, then show us the coding for the following function

    void cell_on(board b, int r, int c);
    ...
  7. Replies
    3
    Views
    944

    You can use the following code #include...

    You can use the following code


    #include <stdio.h>
    int main() {
    char letter;
    float number;
    while(1) {
    printf("Letter and Number: ");
    scanf("%c %f", &letter, &number);
  8. Use the following code #include...

    Use the following code


    #include<stdio.h>
    #include<string.h>
    main()
    {
    void reverse(char[]);
    char s[30];
    int c;
  9. #include #include int...

    #include <stdio.h>
    #include <stdlib.h>

    int main(void)

    {
    int data[50];
    int i, n, start, stop;

    printf("How many integers should I read (1--50)? ");
  10. Replies
    8
    Views
    2,584

    #include void bubble(int [],int n );...

    #include<stdio.h>
    void bubble(int [],int n );
    main()
    {
    int n;
    int i;
    int a[100];
    int val;
    printf("enter the n values :");
    scanf("%d",&n);
  11. Dear Friend, Use the following URL C...

    Dear Friend,

    Use the following URL
    C Interview Questions

    C Interview Questions and Answers - C Interview FAQs & C Books

    For more details use the google search.
  12. Replies
    4
    Views
    1,962

    Dear Friend, You can use the following...

    Dear Friend,

    You can use the following coding also, to reverse the string.


    #include<stdio.h>
    #include<string.h>
    #include<malloc.h>
    char * reverse(char*);
  13. Replies
    2
    Views
    2,547

    Dear friend, You have create the fork, it...

    Dear friend,

    You have create the fork, it is correct. But in the parent you are tried to read the file and in the child you are tried to write. That also correct.

    But in the parent...
  14. Dear Friend, You can't get the floating...

    Dear Friend,

    You can't get the floating value correctly. Because in the putDigit function you gave the argument type as int. So if we pass the floating point value , it will convert the float...
  15. Replies
    9
    Views
    1,077

    Dear friend, You did some mistake in the...

    Dear friend,

    You did some mistake in the assign the pointer address. I have attach the correct code here. You need to change the coding in the main function only. No need to change any other...
Results 1 to 15 of 16