%.*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".
%.*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".
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);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us