Answers for "** in c"

1

%.*s in c

example:
printf("%.*s",3,"hello");

output:hel
here 3 represents the length of the string to be printed in the "hello string".
Posted by: Guest on May-11-2020
-2

double pointers C++

#include <stdio.h>

int main(void)
{
    int value = 100;
    int *value_ptr = &value;
    int **value_double_ptr = &value_ptr;

    printf("Value: %d\n", value);
    printf("Pointer to value: %d\n", *value_ptr);
    printf("Double pointer to value: %d\n", **value_double_ptr);
}
Posted by: Guest on February-06-2020

Code answers related to "Objective-C"

Browse Popular Code Answers by Language